Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix respond_to failures

Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  • Loading branch information...
commit 5d9e63cb06c18ed841ee5dde0d4ca87b71210adf 1 parent 1318933
@technoweenie technoweenie authored committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/test_truth_expectations.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.