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