blob: 9b8cedb1d5a794208268d12fe940f410bc972ff6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require File.expand_path('../../../../spec_helper', __FILE__)
describe "GC::Profiler.disable" do
before do
@status = GC::Profiler.enabled?
end
after do
@status ? GC::Profiler.enable : GC::Profiler.disable
end
it "disables the profiler" do
GC::Profiler.disable
GC::Profiler.enabled?.should == false
end
end
|