diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 08:41:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 08:41:13 +0000 |
commit | 289d6bb30f4c2fffa2437436030c889f10522e72 (patch) | |
tree | b15592f8711911f5fa1be329bb20dd7ce6d4aed8 /test/ruby/test_file.rb | |
parent | a28de81aec2cb6af9199891f2fba17efc6f1ebc8 (diff) | |
download | ruby-289d6bb30f4c2fffa2437436030c889f10522e72.tar.gz |
test: use assert_raise
* test/ruby, test/-ext-: use assert_raise instead of assert_raises.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file.rb')
-rw-r--r-- | test/ruby/test_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index 25ad11c64f..4a1f03cb00 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -339,7 +339,7 @@ class TestFile < Test::Unit::TestCase end def test_file_open_double_mode - e = assert_raises(ArgumentError) { File.open("a", 'w', :mode => 'rw+') } + e = assert_raise(ArgumentError) { File.open("a", 'w', :mode => 'rw+') } assert_equal 'mode specified twice', e.message end |