summaryrefslogtreecommitdiff
path: root/spec/ruby/core/tracepoint/trace_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/tracepoint/trace_spec.rb')
-rw-r--r--spec/ruby/core/tracepoint/trace_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/ruby/core/tracepoint/trace_spec.rb b/spec/ruby/core/tracepoint/trace_spec.rb
index e5798df9fb..167f594bb9 100644
--- a/spec/ruby/core/tracepoint/trace_spec.rb
+++ b/spec/ruby/core/tracepoint/trace_spec.rb
@@ -1,9 +1,10 @@
require_relative '../../spec_helper'
+require_relative 'fixtures/classes'
describe 'TracePoint.trace' do
it 'activates the trace automatically' do
- trace = TracePoint.trace(:call) {}
- trace.enabled?.should be_true
+ trace = TracePoint.trace(:line) {}
+ trace.should.enabled?
trace.disable
end
end