Skip to content

Commit

Permalink
- Fix to turn on jruby's support for ObjectSpace. (stepheneb)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/ZenTest/dev/": change = 6464]
  • Loading branch information
zenspider committed Jul 20, 2011
1 parent 1e07c41 commit bab412e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/zentest.rb
@@ -1,3 +1,7 @@
if (defined? RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
require 'java'
JRuby.objectspace=true
end

$stdlib = {}
ObjectSpace.each_object(Module) do |m|
Expand Down

0 comments on commit bab412e

Please sign in to comment.