diff --git a/spec/extensions/extra_locales_controller_spec.rb b/spec/extensions/extra_locales_controller_spec.rb index 4c8f97c8..6d6374fd 100644 --- a/spec/extensions/extra_locales_controller_spec.rb +++ b/spec/extensions/extra_locales_controller_spec.rb @@ -36,13 +36,13 @@ describe ExtraLocalesControllerCustomWizard, type: :request do expect(response.status).to eq(200) end - it "doesnt return wizard locales if user cant access wizard" do + it "return wizard locales if user cant access wizard" do template[:permitted] = permitted["permitted"] CustomWizard::Template.save(template.as_json) sign_in(new_user) get @locale_url, headers: { 'REFERER' => "/w/super-mega-fun-wizard" } - expect(response.status).to eq(403) + expect(response.status).to eq(200) end it "doesnt return wizard locales to non-staff when requested outside of wizard" do