summaryrefslogtreecommitdiff
path: root/spec/ruby/core/gc/profiler/disable_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/gc/profiler/disable_spec.rb')
-rw-r--r--spec/ruby/core/gc/profiler/disable_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/gc/profiler/disable_spec.rb b/spec/ruby/core/gc/profiler/disable_spec.rb
index 9b8cedb1d5..74089693eb 100644
--- a/spec/ruby/core/gc/profiler/disable_spec.rb
+++ b/spec/ruby/core/gc/profiler/disable_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
describe "GC::Profiler.disable" do
before do
@@ -11,6 +11,6 @@ describe "GC::Profiler.disable" do
it "disables the profiler" do
GC::Profiler.disable
- GC::Profiler.enabled?.should == false
+ GC::Profiler.should_not.enabled?
end
end