1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix copypaste. [ci skip]

This commit is contained in:
Edward Tsech 2012-05-11 11:11:41 +02:00
parent c8f5a216df
commit 1065ef8fd3

View file

@ -491,11 +491,11 @@ class HashExtTest < ActiveSupport::TestCase
original = { :a => 'x', :b => 'y', :c => 10 } original = { :a => 'x', :b => 'y', :c => 10 }
expected = { :a => 'x', :b => 'y' } expected = { :a => 'x', :b => 'y' }
# Should return a new hash with only the given keys. # Should return a new hash without the given keys.
assert_equal expected, original.except(:c) assert_equal expected, original.except(:c)
assert_not_equal expected, original assert_not_equal expected, original
# Should replace the hash with only the given keys. # Should replace the hash without the given keys.
assert_equal expected, original.except!(:c) assert_equal expected, original.except!(:c)
assert_equal expected, original assert_equal expected, original
end end