diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 15:17:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 15:17:20 +0000 |
commit | 2918f391ddc23b9e8b6552a729cea80d71294372 (patch) | |
tree | 91fa10ff23e0857b72120dcd0d4b239381796161 /test/ruby/test_array.rb | |
parent | e92ee13c6da5252645bc9bae6a787122b7816916 (diff) | |
download | ruby-2918f391ddc23b9e8b6552a729cea80d71294372.tar.gz |
test/ruby: assert_raise_with_message
* test/ruby: use assert_raise_with_message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r-- | test/ruby/test_array.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index b4f35af84d..873c49783f 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -2300,8 +2300,7 @@ class TestArray < Test::Unit::TestCase assert_equal([], a.rotate!(13)) assert_equal([], a.rotate!(-13)) a = [].freeze - e = assert_raise(RuntimeError) {a.rotate!} - assert_match(/can't modify frozen/, e.message) + assert_raise_with_message(RuntimeError, /can't modify frozen/) {a.rotate!} a = [1,2,3] assert_raise(ArgumentError) { a.rotate!(1, 1) } end |