working on getting standardized for the specs
This commit is contained in:
parent
86089d90b6
commit
c1b49f36ea
@ -88,6 +88,7 @@ module ActionController #:nodoc:
|
|||||||
IntegrationTest.class_eval do
|
IntegrationTest.class_eval do
|
||||||
include Webrat::Methods
|
include Webrat::Methods
|
||||||
include Webrat::Selenium::Methods
|
include Webrat::Selenium::Methods
|
||||||
|
# include Webrat::Matchers
|
||||||
include Webrat::Selenium::Matchers
|
include Webrat::Selenium::Matchers
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -3,8 +3,7 @@ require 'test_helper'
|
|||||||
class WebratTest < ActionController::IntegrationTest
|
class WebratTest < ActionController::IntegrationTest
|
||||||
test "should visit pages" do
|
test "should visit pages" do
|
||||||
visit root_path
|
visit root_path
|
||||||
assert_tag "Webrat Form"
|
assert_contain("Webrat Form")
|
||||||
assert response.body.include?("Webrat Form")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test "should submit forms" do
|
test "should submit forms" do
|
||||||
@ -17,7 +16,7 @@ class WebratTest < ActionController::IntegrationTest
|
|||||||
|
|
||||||
test "should follow internal redirects" do
|
test "should follow internal redirects" do
|
||||||
visit internal_redirect_path
|
visit internal_redirect_path
|
||||||
assert response.body.include?("OK")
|
assert_contain("OK")
|
||||||
end
|
end
|
||||||
|
|
||||||
test "should not follow external redirects" do
|
test "should not follow external redirects" do
|
||||||
|
Loading…
Reference in New Issue
Block a user