Skip to content

Commit

Permalink
JRuby: enable ObjectSpace so we can check for memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlinsley committed Jan 18, 2014
1 parent b6f2c96 commit 6a32c07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/integration/memory_spec.rb
@@ -1,6 +1,7 @@
require 'spec_helper'

describe "Memory Leak" do
JRuby.objectspace = true if RUBY_ENGINE =~ /jruby/

def count_instances_of(klass)
ObjectSpace.each_object(klass) { }
Expand Down

0 comments on commit 6a32c07

Please sign in to comment.