* Rename SiteConfig * More renaming * Update spec * Update mandatory settings mapping * More renaming * e2e test fixes * You have a rename, and you have a rename * Spec fix * More changes * Temporarily disable specs * After-merge update * Undo rename for migration * undo rename of DUS * Fix DUS * Fix merge problem * Remove redundant DUS * Fix specs * Remove unused code * Change wrong class name * More cleanup * Re-add missing values to constant * Fix constant * Fix spec * Remove obsolete fields * Add accidentally removed field * Update spec * Move methods from Settings::General to ForemInstance * Remove unneeded model * Change mentions of 'site config'
25 lines
736 B
Ruby
25 lines
736 B
Ruby
require "rails_helper"
|
|
|
|
vcr_option = {
|
|
cassette_name: "ga_event",
|
|
allow_playback_repeats: "true"
|
|
}
|
|
|
|
RSpec.describe "GaEvents", type: :request, vcr: vcr_option do
|
|
describe "POST /fallback_activity_recorder" do
|
|
it "posts to fallback_activity_recorder" do
|
|
post "/fallback_activity_recorder", params: {
|
|
path: "/ben", user_language: "en"
|
|
}.to_json
|
|
expect(response.body).to eq("")
|
|
end
|
|
|
|
it "renders normal response even if the Forem instance is private" do
|
|
allow(Settings::UserExperience).to receive(:public).and_return(false)
|
|
post "/fallback_activity_recorder", params: {
|
|
path: "/ben", user_language: "en"
|
|
}.to_json
|
|
expect(response.body).to eq("")
|
|
end
|
|
end
|
|
end
|