summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/tracepoint_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2020-05-03 12:28:29 +0200
committerBenoit Daloze <[email protected]>2020-05-03 12:28:29 +0200
commit5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39 (patch)
treee1694f5a4a5558884b1b8f3890b186793e5e982f /spec/ruby/optional/capi/tracepoint_spec.rb
parentf646d20aaeb8f02bcd3d0c5c3f5a372da654502a (diff)
Update to ruby/spec@032ee74
Diffstat (limited to 'spec/ruby/optional/capi/tracepoint_spec.rb')
-rw-r--r--spec/ruby/optional/capi/tracepoint_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/optional/capi/tracepoint_spec.rb b/spec/ruby/optional/capi/tracepoint_spec.rb
index 6aeac54921..2043b7c941 100644
--- a/spec/ruby/optional/capi/tracepoint_spec.rb
+++ b/spec/ruby/optional/capi/tracepoint_spec.rb
@@ -15,7 +15,7 @@ describe "CApiTracePointSpecs" do
it "returns a tracepoint object" do
@trace = @s.rb_tracepoint_new(7)
@trace.should be_an_instance_of(TracePoint)
- @trace.enabled?.should == false
+ @trace.should_not.enabled?
end
it "traces lines when given RUBY_EVENT_LINE" do
@@ -28,20 +28,20 @@ describe "CApiTracePointSpecs" do
describe "rb_tracepoint_disable" do
it "disables an enabled TracePoint" do
@trace = @s.rb_tracepoint_new(9)
- @trace.enabled?.should == false
+ @trace.should_not.enabled?
@trace.enable
- @trace.enabled?.should == true
+ @trace.should.enabled?
@s.rb_tracepoint_disable(@trace).should == false
- @trace.enabled?.should == false
+ @trace.should_not.enabled?
end
end
describe "rb_tracepoint_enable" do
it "enables a disabled TracePoint" do
@trace = @s.rb_tracepoint_new(10)
- @trace.enabled?.should == false
+ @trace.should_not.enabled?
@s.rb_tracepoint_enable(@trace).should == true
- @trace.enabled?.should == true
+ @trace.should.enabled?
end
end