0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

group specs related to skip functionality in a context

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-08-13 18:58:33 +05:30
Ursprung 3c70b712bf
Commit e260241dea

Datei anzeigen

@ -50,6 +50,8 @@ describe CustomWizard::WizardController do
expect(response.parsed_body["error"]).to eq("We couldn't find a wizard at that address.")
end
context 'when user skips the wizard' do
it 'skips a wizard if user is allowed to skip' do
put '/w/super-mega-fun-wizard/skip.json'
expect(response.status).to eq(200)
@ -99,3 +101,4 @@ describe CustomWizard::WizardController do
expect(response.parsed_body["start"]).to eq('step_1')
end
end
end