diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-24 17:44:39 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-24 17:44:39 +0000 |
| commit | 3454e2b989d541a1b6dfa0e5f6432cce17cc16d7 (patch) | |
| tree | b57bc2afea00aa87978f691526dd7adc1b8a067d /test/strscan | |
| parent | 67f7cf01b9a126710761dd1f7e3c7a96e74ce621 (diff) | |
| download | ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.tar.gz ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.tar.xz ruby-3454e2b989d541a1b6dfa0e5f6432cce17cc16d7.zip | |
* test: assert_raises has been deprecated since a long time ago.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/strscan')
| -rw-r--r-- | test/strscan/test_stringscanner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/strscan/test_stringscanner.rb b/test/strscan/test_stringscanner.rb index ff1eb7a29..151e8928a 100644 --- a/test/strscan/test_stringscanner.rb +++ b/test/strscan/test_stringscanner.rb @@ -31,8 +31,8 @@ class TestStringScanner < Test::Unit::TestCase def test_s_allocate s = StringScanner.allocate assert_equal '#<StringScanner (uninitialized)>', s.inspect.sub(/StringScanner_C/, 'StringScanner') - assert_raises(UNINIT_ERROR) { s.eos? } - assert_raises(UNINIT_ERROR) { s.scan(/a/) } + assert_raise(UNINIT_ERROR) { s.eos? } + assert_raise(UNINIT_ERROR) { s.scan(/a/) } s.string = 'test' assert_equal '#<StringScanner 0/4 @ "test">', s.inspect.sub(/StringScanner_C/, 'StringScanner') assert_nothing_raised(UNINIT_ERROR) { s.eos? } |
