0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-09 20:02:54 +01:00

Update locale spec to reflect new non_access handling

Dieser Commit ist enthalten in:
Angus McLeod 2020-12-08 13:30:44 +11:00
Ursprung 6dfd9e36c2
Commit cb3821c7d8

Datei anzeigen

@ -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