Guest User

Untitled

a guest
Jul 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # redefinition of the "then i should see"-step
  2.  
  3. Then /^(?:|I )should see "([^\"]*)"$/ do |text|
  4. case text
  5. when starts_with? "a"
  6. assert_select text
  7. else
  8. end
  9. end
  10.  
  11. # gives me:
  12.  
  13. cucumber features
  14. Using the default profile...
  15. ./features/step_definitions/web_steps.rb:143: syntax error, unexpected kWHEN
  16. when t.starts_with? "a"
  17. ^
Add Comment
Please, Sign In to add comment