Skip to content

Commit

Permalink
Merge branch 'master' into rack
Browse files Browse the repository at this point in the history
  • Loading branch information
brynary committed Aug 12, 2009
2 parents 0c7fa65 + d9ebabf commit 25c1d7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions spec/public/matchers/contain_spec.rb
Expand Up @@ -56,13 +56,13 @@
it "should throw an exception when the body doesnt contain the text" do
lambda {
assert_contain("monkeys")
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end

it "should throw an exception when the body doesnt contain the regexp" do
lambda {
assert_contain(/monkeys/)
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end
end

Expand All @@ -78,13 +78,13 @@
it "should throw an exception when the body does contain the text" do
lambda {
assert_not_contain("hello, world")
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end

it "should throw an exception when the body does contain the regexp" do
lambda {
assert_not_contain(/hello, world/)
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/public/matchers/have_selector_spec.rb
Expand Up @@ -122,7 +122,7 @@
it "should throw an exception when the body doesnt have matching selection" do
lambda {
assert_have_selector("p")
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end
end

Expand All @@ -134,7 +134,7 @@
it "should throw an exception when the body does contain the selection" do
lambda {
assert_have_no_selector("div")
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/public/matchers/have_xpath_spec.rb
Expand Up @@ -117,7 +117,7 @@
it "should throw an exception when the body doesnt have matching xpath" do
lambda {
assert_have_xpath("//p")
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end
end

Expand All @@ -129,7 +129,7 @@
it "should throw an exception when the body does contain the xpath" do
lambda {
assert_have_no_xpath("//div")
}.should raise_error(Test::Unit::AssertionFailedError)
}.should raise_error(AssertionFailedError)
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -8,6 +8,8 @@
webrat_path = File.expand_path(File.dirname(__FILE__) + "/../lib/")
$LOAD_PATH.unshift(webrat_path) unless $LOAD_PATH.include?(webrat_path)

AssertionFailedError = Test::Unit::AssertionFailedError rescue MiniTest::Assertion # ruby1.9 compat

require "webrat"
require File.expand_path(File.dirname(__FILE__) + "/fakes/test_session")

Expand Down

0 comments on commit 25c1d7c

Please sign in to comment.