summaryrefslogtreecommitdiff
path: root/test/test_singleton.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_singleton.rb')
-rw-r--r--test/test_singleton.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_singleton.rb b/test/test_singleton.rb
index 259f9c5..36d4937 100644
--- a/test/test_singleton.rb
+++ b/test/test_singleton.rb
@@ -20,19 +20,19 @@ class TestSingleton < Test::Unit::TestCase
end
def test_initialize_raises_exception
- assert_raises NoMethodError do
+ assert_raise NoMethodError do
SingletonTest.new
end
end
def test_allocate_raises_exception
- assert_raises NoMethodError do
+ assert_raise NoMethodError do
SingletonTest.allocate
end
end
def test_clone_raises_exception
- exception = assert_raises TypeError do
+ exception = assert_raise TypeError do
SingletonTest.instance.clone
end
@@ -42,7 +42,7 @@ class TestSingleton < Test::Unit::TestCase
end
def test_dup_raises_exception
- exception = assert_raises TypeError do
+ exception = assert_raise TypeError do
SingletonTest.instance.dup
end
@@ -54,7 +54,7 @@ class TestSingleton < Test::Unit::TestCase
def test_include_in_module_raises_exception
mod = Module.new
- exception = assert_raises TypeError do
+ exception = assert_raise TypeError do
mod.class_eval do
include Singleton
end
@@ -66,7 +66,7 @@ class TestSingleton < Test::Unit::TestCase
end
def test_extending_singleton_raises_exception
- assert_raises NoMethodError do
+ assert_raise NoMethodError do
'foo'.extend Singleton
end
end