Update locale spec to reflect new non_access handling
Dieser Commit ist enthalten in:
Ursprung
6dfd9e36c2
Commit
cb3821c7d8
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -36,13 +36,13 @@ describe ExtraLocalesControllerCustomWizard, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
end
|
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"]
|
template[:permitted] = permitted["permitted"]
|
||||||
CustomWizard::Template.save(template.as_json)
|
CustomWizard::Template.save(template.as_json)
|
||||||
|
|
||||||
sign_in(new_user)
|
sign_in(new_user)
|
||||||
get @locale_url, headers: { 'REFERER' => "/w/super-mega-fun-wizard" }
|
get @locale_url, headers: { 'REFERER' => "/w/super-mega-fun-wizard" }
|
||||||
expect(response.status).to eq(403)
|
expect(response.status).to eq(200)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesnt return wizard locales to non-staff when requested outside of wizard" do
|
it "doesnt return wizard locales to non-staff when requested outside of wizard" do
|
||||||
|
|
Laden …
In neuem Issue referenzieren