group specs related to skip
functionality in a context
Dieser Commit ist enthalten in:
Ursprung
3c70b712bf
Commit
e260241dea
1 geänderte Dateien mit 41 neuen und 38 gelöschten Zeilen
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren