aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2010-09-24 23:21:59 +0200
committerthedarkone <thedarkone2@gmail.com>2010-09-27 17:45:59 +0200
commit77efc20a54708ba37ba679ffe90021bf8a8d3a8a (patch)
tree501f8c1c8d09327cd89408dc751140493195540e /activesupport/test
parent4c360c15e53324a7e5940f943129a06da51ac7d3 (diff)
downloadrails-77efc20a54708ba37ba679ffe90021bf8a8d3a8a.tar.gz
rails-77efc20a54708ba37ba679ffe90021bf8a8d3a8a.tar.bz2
rails-77efc20a54708ba37ba679ffe90021bf8a8d3a8a.zip
Make assert_valid_keys slightly faster.
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/hash_ext_test.rb2
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