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

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