summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-03 16:34:21 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-03 16:34:21 +0900
commit427ea605e7408fd2ed3b5c97d701c660b8028788 (patch)
tree1914f4d72a56d6ba8969879d3bfcadb1bbb71907 /test
parentb81f0d0ffb7db46507f7b79ccb72cc94428555ce (diff)
parent037a1d70880ecdcfd2d55eb10c234de1001eb654 (diff)
downloadmruby-427ea605e7408fd2ed3b5c97d701c660b8028788.tar.gz
mruby-427ea605e7408fd2ed3b5c97d701c660b8028788.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'test')
-rw-r--r--test/t/nomethoderror.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/t/nomethoderror.rb b/test/t/nomethoderror.rb
index 561e545f9..709d31165 100644
--- a/test/t/nomethoderror.rb
+++ b/test/t/nomethoderror.rb
@@ -11,3 +11,16 @@ end
assert('NoMethodError superclass', '15.2.32.2') do
assert_equal NameError, NoMethodError.superclass
end
+
+assert('NoMethodError#args', '15.2.32.2.1') do
+ a = NoMethodError.new 'test', :test, [1, 2]
+ assert_equal [1, 2], a.args
+
+ assert_nothing_raised do
+ begin
+ doesNotExistAsAMethodNameForVerySure 3, 1, 4
+ rescue NoMethodError => e
+ assert_equal [3, 1, 4], e.args
+ end
+ end
+end