summaryrefslogtreecommitdiffhomepage
path: root/test/t/module.rb
diff options
context:
space:
mode:
authorChristopher Aue <[email protected]>2017-08-29 23:25:53 +0200
committerChristopher Aue <[email protected]>2017-08-29 23:25:53 +0200
commit4b0b8f7e1af6e452fa4ab36217290e953b866ac8 (patch)
treee9339425912ac61ce32d9ae384ef310d38b54a34 /test/t/module.rb
parent8976f47e0a0399b4332cfca6e8b9de8345bcf1af (diff)
downloadmruby-4b0b8f7e1af6e452fa4ab36217290e953b866ac8.tar.gz
mruby-4b0b8f7e1af6e452fa4ab36217290e953b866ac8.zip
Refactored #assert_raise and #assert_nothing_raised
Diffstat (limited to 'test/t/module.rb')
-rw-r--r--test/t/module.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/module.rb b/test/t/module.rb
index 107bea875..5a46c24ff 100644
--- a/test/t/module.rb
+++ b/test/t/module.rb
@@ -635,7 +635,7 @@ end
c.singleton_class.class_eval do
define_method(:method_removed) {|id| removed = id}
end
- assert_nothing_raised(NoMethodError, NameError, '[Bug #7843]') do
+ assert_nothing_raised('[Bug #7843]') do
c.class_eval do
remove_method(:foo)
end
@@ -724,7 +724,7 @@ end
end
a = c.new
assert_true a.respond_to?(:foo), bug8005
- assert_nothing_raised(NoMethodError, bug8005) {a.send :foo}
+ assert_nothing_raised(bug8005) {a.send :foo}
end
# mruby has no visibility control