From c1b49f36ea9a72aac10c25470bb0ae8f8f531048 Mon Sep 17 00:00:00 2001 From: Mike Gaffney Date: Mon, 12 Jan 2009 23:31:14 -0600 Subject: [PATCH] working on getting standardized for the specs --- lib/webrat/selenium.rb | 1 + spec/integration/rails/test/integration/webrat_test.rb | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) 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