Ruby Quicktips Logo

Ruby Quicktips

Random Ruby and Rails tips.
This blog is dedicated to deliver short, interesting and practical tidbits of the Ruby language and Ruby on Rails framework. Read more...

Your submissions are more than welcome!
Aug 26 ’11

Step through your Cucumber features one step at a time

If you want to step through your cucumber scenarios simulating an interactive debugger, add this hook:

AfterStep('@pause') do
  print "Press Return to continue..."
  STDIN.getc
end

Then tag any feature with “@pause” and you’re all set.

1 note 0 comments

  1. Ed James submitted this to rubyquicktips

Comments

You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.

blog comments powered by Disqus