From cb3821c7d89c7d6edc023495bb23a68346874a31 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Tue, 8 Dec 2020 13:30:44 +1100 Subject: [PATCH] Update locale spec to reflect new non_access handling --- spec/extensions/extra_locales_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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