1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_case.rb (test_nomethoderror):

Add test related to r43913, r43914

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
sorah 2013-12-01 17:06:56 +00:00
parent 54f6020df1
commit 46e44fb628
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Dec 2 02:03:47 2013 Shota Fukumori <her@sorah.jp>
* test/ruby/test_case.rb (test_nomethoderror):
Add test related to r43913, r43914
Mon Dec 2 00:53:01 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* hash.c (getenv): use ANSI codepage version of getenv() for miniruby

View file

@ -114,4 +114,12 @@ class TestCase < Test::Unit::TestCase
assert(flag)
end
def test_nomethoderror
assert_raise(NoMethodError) {
case 1
when Class.new(BasicObject) { }.new
end
}
end
end