diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-25 13:24:50 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-25 13:24:50 +0900 |
| commit | 3a6391c4853686b97fa17ed2e8db9414bd4b9361 (patch) | |
| tree | 43ac4e47e5cc14644ab66eb2811d9dc83c43cb57 /test | |
| parent | ba4a19dbe9d1e75464a3c28544a3b819149cf809 (diff) | |
| download | mruby-3a6391c4853686b97fa17ed2e8db9414bd4b9361.tar.gz mruby-3a6391c4853686b97fa17ed2e8db9414bd4b9361.zip | |
update test code to ensure return value from class statement
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/class.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/class.rb b/test/t/class.rb index 996370ea9..403a95f10 100644 --- a/test/t/class.rb +++ b/test/t/class.rb @@ -222,8 +222,8 @@ assert('Class new') do assert_equal(Class, Class.new.class) end -assert('Class do not leak method') do - m = class C; def m; end; end +assert('class to return the last value') do + m = class C; :m end assert_equal(m, :m) end |
