Sha256: f7b7dadd6c457a2142201ec8574acfa06c24da983124d8c70d495edebb7f50ef
Contents?: true
Size: 649 Bytes
Versions: 3
Compression:
Stored size: 649 Bytes
Contents
require 'spec_helper' # These tests show the memory leak that is currently in Active Admin. They # are all marked as pending until they pass. To work on them, comment out the # pending method call in #it_should_not_leak describe "Memory Leak" do def count_instances_of(klass) ObjectSpace.each_object(klass) { } end def self.it_should_not_leak(klass) it "should not leak #{klass}" do GC.start count = count_instances_of(klass) load_defaults! GC.start count_instances_of(klass).should == count end end it_should_not_leak ActiveAdmin::Namespace it_should_not_leak ActiveAdmin::Resource end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-0.5.0 | spec/integration/memory_spec.rb |
activeadmin-0.5.0.pre1 | spec/integration/memory_spec.rb |
activeadmin-0.5.0.pre | spec/integration/memory_spec.rb |