diff options
author | thedarkone <thedarkone2@gmail.com> | 2010-09-24 23:21:59 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2010-09-27 17:45:59 +0200 |
commit | 77efc20a54708ba37ba679ffe90021bf8a8d3a8a (patch) | |
tree | 501f8c1c8d09327cd89408dc751140493195540e /activesupport/test/core_ext | |
parent | 4c360c15e53324a7e5940f943129a06da51ac7d3 (diff) | |
download | rails-77efc20a54708ba37ba679ffe90021bf8a8d3a8a.tar.gz rails-77efc20a54708ba37ba679ffe90021bf8a8d3a8a.tar.bz2 rails-77efc20a54708ba37ba679ffe90021bf8a8d3a8a.zip |
Make assert_valid_keys slightly faster.
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index fc8d8170a1..e5438745e0 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -282,7 +282,7 @@ class HashExtTest < Test::Unit::TestCase { :failure => "stuff", :funny => "business" }.assert_valid_keys(:failure, :funny) end - assert_raise(ArgumentError, "Unknown key(s): failore") do + assert_raise(ArgumentError, "Unknown key: failore") do { :failore => "stuff", :funny => "business" }.assert_valid_keys([ :failure, :funny ]) { :failore => "stuff", :funny => "business" }.assert_valid_keys(:failure, :funny) end |