Created
September 13, 2012 08:40
-
-
Save diabolo/3712932 to your computer and use it in GitHub Desktop.
Cucumber step helper that uses coderay to peek at html.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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