aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/ordered_hash_test.rb
diff options
context:
space:
mode:
authorThiago Pradi <tchandy@gmail.com>2010-09-11 11:00:37 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-09-19 12:18:51 -0700
commit3c9bf6e1dc3066e32651c955c6e237488115354d (patch)
tree81cada8d920dac2d435e8f0ef0bb37aa7fd6ce08 /activesupport/test/ordered_hash_test.rb
parentaf6757a1ca7027b526b35d74c94a520d6bb24d7a (diff)
downloadrails-3c9bf6e1dc3066e32651c955c6e237488115354d.tar.gz
rails-3c9bf6e1dc3066e32651c955c6e237488115354d.tar.bz2
rails-3c9bf6e1dc3066e32651c955c6e237488115354d.zip
Exception handling more readable
[#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/test/ordered_hash_test.rb')
-rw-r--r--activesupport/test/ordered_hash_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/ordered_hash_test.rb b/activesupport/test/ordered_hash_test.rb
index f47e896487..50778b5864 100644
--- a/activesupport/test/ordered_hash_test.rb
+++ b/activesupport/test/ordered_hash_test.rb
@@ -217,8 +217,8 @@ class OrderedHashTest < Test::Unit::TestCase
ActiveSupport::OrderedHash[1,2,3,4,5]
flunk "Hash::[] should have raised an exception on initialization " +
"with an odd number of parameters"
- rescue
- assert_equal "odd number of arguments for Hash", $!.message
+ rescue ArgumentError => e
+ assert_equal "odd number of arguments for Hash", e.message
end
end