1
0
Fork 0

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)
@ -98,4 +100,5 @@ describe CustomWizard::WizardController do
expect(response.parsed_body["start"]).to eq('step_1')
end
end
end