Advertisement
akaiiro

Debugger Out of Scope in Cucumber

Jun 5th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. When /I (un)?check the following ratings: (.*)/ do |uncheck, rating_list|
  2.   # HINT: use String#split to split up the rating_list, then
  3.   #   iterate over the ratings and reuse the "When I check..." or
  4.   #   "When I uncheck..." steps in lines 89-95 of web_steps.rb
  5.  
  6.   # If you use debugger as the last instruction of a method, it will
  7.   # get out of the scope of that method...
  8.   debugger
  9.   #flunk "Unimplemented"
  10. end
  11.  
  12. # In the console, you try to check the variables once the debugger
  13. # stopped the execution and then...
  14. $ rating_list
  15. # => ERROR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement