diff --git a/lib/webrat/selenium.rb b/lib/webrat/selenium.rb index 28a9485..511325c 100644 --- a/lib/webrat/selenium.rb +++ b/lib/webrat/selenium.rb @@ -88,6 +88,7 @@ module ActionController #:nodoc: IntegrationTest.class_eval do include Webrat::Methods include Webrat::Selenium::Methods +# include Webrat::Matchers include Webrat::Selenium::Matchers end end diff --git a/spec/integration/rails/test/integration/webrat_test.rb b/spec/integration/rails/test/integration/webrat_test.rb index eb56917..f695f27 100644 --- a/spec/integration/rails/test/integration/webrat_test.rb +++ b/spec/integration/rails/test/integration/webrat_test.rb @@ -3,8 +3,7 @@ require 'test_helper' class WebratTest < ActionController::IntegrationTest test "should visit pages" do visit root_path - assert_tag "Webrat Form" - assert response.body.include?("Webrat Form") + assert_contain("Webrat Form") end test "should submit forms" do @@ -17,7 +16,7 @@ class WebratTest < ActionController::IntegrationTest test "should follow internal redirects" do visit internal_redirect_path - assert response.body.include?("OK") + assert_contain("OK") end test "should not follow external redirects" do