Skip to content
Browse files

Merge pull request #7181 from jfirebaugh/rbx

Don't test language-level exception messages
  • Loading branch information...
2 parents 1fab518 + e113480 commit f3bfcbb2a23bc44c9a11df2f3e3d4ec146d69c48 @rafaelfranca rafaelfranca committed Jul 27, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 activesupport/test/ordered_hash_test.rb
View
6 activesupport/test/ordered_hash_test.rb
@@ -226,12 +226,8 @@ def test_alternate_initialization_with_array
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

0 comments on commit f3bfcbb

Please sign in to comment.
Something went wrong with that request. Please try again.