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:
parent
c8f5a216df
commit
1065ef8fd3
1 changed files with 2 additions and 2 deletions
|
@ -491,11 +491,11 @@ class HashExtTest < ActiveSupport::TestCase
|
|||
original = { :a => 'x', :b => 'y', :c => 10 }
|
||||
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_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
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue