summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-02 07:21:36 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-02 07:21:36 +0000
commitc7d6c0d084bbb40d43d7bf7e0e4812c09d1a1a90 (patch)
tree025d204b89a884804134d7b9063d9a73acff7e9b
parent73fc0cc57276b6aef3f5301fd3987b1b6d1dd296 (diff)
* test/ruby/test_module.rb: Refactor invalid testcase.
[fix GH-472][ruby-core:59035][Bug #9240] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_module.rb9
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 067ce8b9ad..b7fa2ab802 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jan 2 16:18:44 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
+
+ * test/ruby/test_module.rb: Refactor invalid testcase.
+ [fix GH-472][ruby-core:59035][Bug #9240]
+
Fri Jan 2 15:53:00 2015 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/webrick/utils.rb: removed unused argument variable.
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 6d08bf6c00..8084fdab45 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1926,8 +1926,8 @@ class TestModule < Test::Unit::TestCase
assert_raise(NoMethodError, bug8284) {Object.define_method}
end
- def test_include_module_with_constants_invalidates_method_cache
- assert_in_out_err([], <<-RUBY, %w(123 456), [])
+ def test_include_module_with_constants_does_not_invalidate_method_cache
+ assert_in_out_err([], <<-RUBY, %w(123 456 true), [])
A = 123
class Foo
@@ -1941,8 +1941,13 @@ class TestModule < Test::Unit::TestCase
end
puts Foo.a
+ starting = RubyVM.stat[:global_method_state]
+
Foo.send(:include, M)
+
+ ending = RubyVM.stat[:global_method_state]
puts Foo.a
+ puts starting == ending
RUBY
end