Created
January 21, 2010 00:39
-
-
Save gma/282474 to your computer and use it in GitHub Desktop.
This file contains 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
module ActionController | |
module Assertions | |
module SelectorAssertions | |
protected | |
def response_from_page_or_rjs | |
HTML::Document.new(body, strict = false, xml = false).root | |
end | |
end | |
end | |
end | |
class AcceptanceTest < Test::Unit::TestCase | |
include Capybara | |
include ActionController::Assertions::SelectorAssertions | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment