Skip to content

Instantly share code, notes, and snippets.

@diabolo
Created September 13, 2012 08:40
Show Gist options
  • Save diabolo/3712932 to your computer and use it in GitHub Desktop.
Save diabolo/3712932 to your computer and use it in GitHub Desktop.
Cucumber step helper that uses coderay to peek at html.
require 'coderay'
module DebugStepHelper
def peek
output = CodeRay.scan(page.body, :html).term
print '-- peeking at body'
print output
print '-- end peeking at body'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment