summaryrefslogtreecommitdiff
path: root/spec/ruby/core/gc/profiler/disable_spec.rb
blob: 74089693eb56b045e3c2690fc2c13d6314701adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require_relative '../../../spec_helper'

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.should_not.enabled?
  end
end