make asserts count for assert_contain

This commit is contained in:
Amos King 2009-01-13 22:24:55 -06:00
parent ea930106b6
commit 3707262e72

View File

@ -55,6 +55,7 @@ describe Webrat::Matchers do
end end
describe 'asserts for xpath' do describe 'asserts for xpath' do
include Test::Unit::Assertions
before(:each) do before(:each) do
should_receive(:response_body).and_return @body should_receive(:response_body).and_return @body
require 'test/unit' require 'test/unit'
@ -114,6 +115,7 @@ describe Webrat::Matchers do
end end
describe "asserts for selector," do describe "asserts for selector," do
include Test::Unit::Assertions
before(:each) do before(:each) do
should_receive(:response_body).and_return @body should_receive(:response_body).and_return @body
require 'test/unit' require 'test/unit'
@ -188,6 +190,7 @@ describe Webrat::Matchers do
end end
describe "asserts for tags," do describe "asserts for tags," do
include Test::Unit::Assertions
before(:each) do before(:each) do
should_receive(:response_body).and_return @body should_receive(:response_body).and_return @body
require 'test/unit' require 'test/unit'