Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # redefinition of the "then i should see"-step
- Then /^(?:|I )should see "([^\"]*)"$/ do |text|
- case text
- when starts_with? "a"
- assert_select text
- else
- end
- end
- # gives me:
- cucumber features
- Using the default profile...
- ./features/step_definitions/web_steps.rb:143: syntax error, unexpected kWHEN
- when t.starts_with? "a"
- ^
Add Comment
Please, Sign In to add comment