diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-27 12:58:37 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-27 12:58:37 -0700 |
commit | f3bfcbb2a23bc44c9a11df2f3e3d4ec146d69c48 (patch) | |
tree | 62008c9b36159fac32af16afb1b5ec2ce0760c70 | |
parent | 1fab518c6a75dac5773654646eb724a59741bc13 (diff) | |
parent | e11348063b1ff0149b8392ba455a7cefcddb5f39 (diff) | |
download | rails-f3bfcbb2a23bc44c9a11df2f3e3d4ec146d69c48.tar.gz rails-f3bfcbb2a23bc44c9a11df2f3e3d4ec146d69c48.tar.bz2 rails-f3bfcbb2a23bc44c9a11df2f3e3d4ec146d69c48.zip |
Merge pull request #7181 from jfirebaugh/rbx
Don't test language-level exception messages
-rw-r--r-- | activesupport/test/ordered_hash_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activesupport/test/ordered_hash_test.rb b/activesupport/test/ordered_hash_test.rb index e8defd396b..ac85ba1f21 100644 --- a/activesupport/test/ordered_hash_test.rb +++ b/activesupport/test/ordered_hash_test.rb @@ -226,12 +226,8 @@ class OrderedHashTest < ActiveSupport::TestCase end def test_alternate_initialization_raises_exception_on_odd_length_args - begin + assert_raises ArgumentError do ActiveSupport::OrderedHash[1,2,3,4,5] - flunk "Hash::[] should have raised an exception on initialization " + - "with an odd number of parameters" - rescue ArgumentError => e - assert_equal "odd number of arguments for Hash", e.message end end |