Skip to content

Instantly share code, notes, and snippets.

@gma
Created January 21, 2010 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gma/282474 to your computer and use it in GitHub Desktop.
Save gma/282474 to your computer and use it in GitHub Desktop.
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