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:
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)
|
||||
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
|
||||
|
|
Laden …
In neuem Issue referenzieren