Skip to content

Commit

Permalink
Code beautifier
Browse files Browse the repository at this point in the history
  - strainer_test.rb
  • Loading branch information
DBA authored and Tobias Lütke committed Aug 22, 2010
1 parent 8e4573a commit bd7f867
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/strainer_test.rb
Expand Up @@ -12,15 +12,15 @@ def test_strainer
assert_equal false, strainer.respond_to?('__send__')
assert_equal true, strainer.respond_to?('size') # from the standard lib
end

def test_should_respond_to_two_parameters
strainer = Strainer.create(nil)
assert_equal true, strainer.respond_to?('size', false)
end

# Asserts that Object#respond_to_missing? is not being undefined in Ruby versions where it has been implemented
# Currently this method is only present in Ruby v1.9.2, or higher
def test_object_respond_to_missing
assert_equal Object.respond_to?(:respond_to_missing?), Strainer.create(nil).respond_to?(:respond_to_missing?)
end
end
end

0 comments on commit bd7f867

Please sign in to comment.