Skip to content
Browse files

Test Hash#except can receive more than one argument.

  • Loading branch information...
1 parent 9b4514c commit 21190f37f8b48bbb991aa7a6400ed4e20bb3768b @edtsech edtsech committed May 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 activesupport/test/core_ext/hash_ext_test.rb
View
6 activesupport/test/core_ext/hash_ext_test.rb
@@ -500,6 +500,12 @@ def test_except
assert_equal expected, original
end
+ def test_except_with_more_than_one_argument
+ original = { :a => 'x', :b => 'y', :c => 10 }
+ expected = { :a => 'x' }
+ assert_equal expected, original.except(:b, :c)
+ end
+
def test_except_with_original_frozen
original = { :a => 'x', :b => 'y' }
original.freeze

0 comments on commit 21190f3

Please sign in to comment.
Something went wrong with that request. Please try again.