OUR BLOG

Thoughts on development, design and the world we live in.



Cucumber Debugging Tip

By admin in Uncategorized. Posted on June 6th

Tracking down the root of an unmet expectation is even trickier when you can’t see what the expectation is being compared to… one great resource I’ve been using as-of-late is cucumber_rails_debug. Here’s the readme, in all of its complexity:

Usage:

Add:

require ‘ruby-debug’
require ‘cucumber_rails_debug/steps’

To features/support/env.rb

Then use:

Then debug # opens the debugger
or
Then what #prints out params, url and html

Simply being able get a hold of the resulting html by saying Then what has proven immensely helpful.

By admin | Posted in Uncategorized | Tagged | Comments (0)

Post a Comment

Your email is never shared. Required fields are marked *

*
*