From 3454e2b989d541a1b6dfa0e5f6432cce17cc16d7 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Sep 2008 17:44:39 +0000 Subject: * 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 --- test/testunit/util/test_observable.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/testunit') diff --git a/test/testunit/util/test_observable.rb b/test/testunit/util/test_observable.rb index 6cd10184f..19e1db018 100644 --- a/test/testunit/util/test_observable.rb +++ b/test/testunit/util/test_observable.rb @@ -18,7 +18,7 @@ module Test end def test_simple_observation - assert_raises(ArgumentError, "add_listener should throw an exception if no callback is supplied") do + assert_raise(ArgumentError, "add_listener should throw an exception if no callback is supplied") do @observable.add_listener(:property, "a") end @@ -71,7 +71,7 @@ module Test end def test_add_remove_with_default_listener - assert_raises(ArgumentError, "add_listener should throw an exception if no callback is supplied") do + assert_raise(ArgumentError, "add_listener should throw an exception if no callback is supplied") do @observable.add_listener(:property) end -- cgit