Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
added spec
Dieser Commit ist enthalten in:
Ursprung
db72617b61
Commit
61ff018244
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
|
@ -37,6 +37,13 @@ describe ExtraLocalesControllerCustomWizard, type: :request do
|
||||||
expect(response.status).to eq(200)
|
expect(response.status).to eq(200)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "returns wizard locales when requested by user in a wizard step" do
|
||||||
|
sign_in(new_user)
|
||||||
|
|
||||||
|
get @locale_url, headers: { 'REFERER' => "/w/super-mega-fun-wizard/steps/step_1" }
|
||||||
|
expect(response.status).to eq(200)
|
||||||
|
end
|
||||||
|
|
||||||
it "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)
|
||||||
|
|
Laden …
In neuem Issue referenzieren