Permalink
Browse files

fix respond_to failures

Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  • Loading branch information...
1 parent 1318933 commit 5d9e63cb06c18ed841ee5dde0d4ca87b71210adf @technoweenie technoweenie committed with Jan 29, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/test_truth_expectations.rb
@@ -236,22 +236,22 @@ def test_negative_kind_of_fail
end
def test_respond_to
- "foo".should respond_to?(:length)
+ "foo".should respond_to(:length)
end
def test_respond_to_fail
lambda {
- "foo".should respond_to?(:nonexistant_method)
+ "foo".should respond_to(:nonexistant_method)
}.should raise_error(Test::Unit::AssertionFailedError)
end
def test_negative_respond_to
- "foo".should_not respond_to?(:nonexistant_method)
+ "foo".should_not respond_to(:nonexistant_method)
end
def test_negative_respond_to_fail
lambda {
- "foo".should_not respond_to?(:length)
+ "foo".should_not respond_to(:length)
}.should raise_error(Test::Unit::AssertionFailedError)
end

0 comments on commit 5d9e63c

Please sign in to comment.