1
0
Fork 0
Dieser Commit ist enthalten in:
Faizaan Gagan 2021-05-30 18:30:51 +05:30
Ursprung db72617b61
Commit 61ff018244

Datei anzeigen

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