summaryrefslogtreecommitdiff
path: root/test/testunit/util/test_observable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/testunit/util/test_observable.rb')
-rw-r--r--test/testunit/util/test_observable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testunit/util/test_observable.rb b/test/testunit/util/test_observable.rb
index 6cd10184f1..19e1db0180 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