Created
June 19, 2009 18:19
-
-
Save jaredatron/132768 to your computer and use it in GitHub Desktop.
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
| When /^I view the response$/ do | |
| save_and_open_page | |
| end | |
| When /^I puts the response$/ do | |
| puts response.class if defined?(response) | |
| puts response.inspect if defined?(response) | |
| puts response_body.class | |
| puts response_body.public_methods(false).inspect | |
| end | |
| When /^I view the methods available to me$/ do | |
| puts <<-DUMP | |
| CLASS: #{self.class} | |
| PUBLIC METHODS: | |
| #{self.public_methods.sort.join("\n\t")} | |
| PUBLIC METHODS (false): | |
| #{self.public_methods(false).sort.join("\n\t")} | |
| DUMP | |
| end | |
| When /^I view the webrat object$/ do | |
| # puts <<-DUMP | |
| # webrat: #{webrat.public_methods(false).sort.join("\n\t")} | |
| # webrat_session: #{webrat_session.public_methods(false).sort.join("\n\t")} | |
| # DUMP | |
| puts <<-DUMP | |
| class: #{webrat.dom.class} | |
| inspect: #{webrat.dom.inspect} | |
| methods: #{webrat.dom.public_methods.sort.join("\n\t")} | |
| DUMP | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment