summaryrefslogtreecommitdiff
path: root/spec/ruby/core/basicobject/not_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/basicobject/not_spec.rb')
-rw-r--r--spec/ruby/core/basicobject/not_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/basicobject/not_spec.rb b/spec/ruby/core/basicobject/not_spec.rb
index ca4cb6f5ff..a6f58ae6f5 100644
--- a/spec/ruby/core/basicobject/not_spec.rb
+++ b/spec/ruby/core/basicobject/not_spec.rb
@@ -2,10 +2,10 @@ require_relative '../../spec_helper'
describe "BasicObject#!" do
it "is a public instance method" do
- BasicObject.should have_public_instance_method(:'!')
+ BasicObject.public_instance_methods(false).should.include?(:'!')
end
it "returns false" do
- (!BasicObject.new).should be_false
+ (!BasicObject.new).should == false
end
end
commit/vm_trace.c?h=v4.0.0&id=c30b8ae947e4e0e01df74b07282b27b1b1c70df8'>Adjust styles and indents [ci skip]Nobuyoshi Nakada 2023-12-22Remove EC argument from clean_hooks_checkJohn Hawthorn 2023-12-13Refactor local variable names in postponed_job methodsKJ Tsanaktsidis 2023-12-12[Bug #19114] Fix for multiple calls of TracePoint#enableKouhei Yanagita 2023-12-10add `flags` to `rb_postponed_job_preregister`Koichi Sasada 2023-12-10Change the semantics of rb_postponed_job_registerKJ Tsanaktsidis 2023-11-22Implement TracePoint on VWAPeter Zhu 2023-11-22Implement Write Barriers on TracePointPeter Zhu 2023-09-04[Bug #18487] [DOC] Remove stale note in `set_trace_func` documentNobuyoshi Nakada 2023-09-04[DOC] Update `set_trace_func` documentNobuyoshi Nakada 2023-09-04[DOC] Fix indent of `set_trace_func` documentNobuyoshi Nakada 2023-08-01support `rescue` event for TracePointKoichi Sasada 2023-05-20`rb_bug` prints a newline after the messageNobuyoshi Nakada 2023-03-23`vm_call_single_noarg_inline_builtin`Koichi Sasada