summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/Array_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/Array_spec.rb')
-rw-r--r--spec/ruby/core/kernel/Array_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/kernel/Array_spec.rb b/spec/ruby/core/kernel/Array_spec.rb
index b4a8bb7599..063faf7097 100644
--- a/spec/ruby/core/kernel/Array_spec.rb
+++ b/spec/ruby/core/kernel/Array_spec.rb
@@ -3,7 +3,7 @@ require_relative 'fixtures/classes'
describe "Kernel" do
it "has private instance method Array()" do
- Kernel.should have_private_instance_method(:Array)
+ Kernel.private_instance_methods(false).should.include?(:Array)
end
end
@@ -77,14 +77,14 @@ describe :kernel_Array, shared: true do
obj = mock("Array() string")
obj.should_receive(:to_ary).and_return("string")
- -> { @object.send(@method, obj) }.should raise_error(TypeError)
+ -> { @object.send(@method, obj) }.should.raise(TypeError)
end
it "raises a TypeError if #to_a does not return an Array" do
obj = mock("Array() string")
obj.should_receive(:to_a).and_return("string")
- -> { @object.send(@method, obj) }.should raise_error(TypeError)
+ -> { @object.send(@method, obj) }.should.raise(TypeError)
end
end
2021-03-08[rubygems/rubygems] Remote test to check requireAditya Prakash 2021-03-08Sync latest development version of bundler & rubygemsDavid Rodríguez 2021-01-04Track RubyGems master(3.3.0.dev) branch at 55634a8af18a52df86c4275d70fa117911...Hiroshi SHIBATA 2020-12-08Merge prepare version of RubyGems 3.2.0Hiroshi SHIBATA 2020-09-28[rubygems/rubygems] Add writable check for cache dirxndcn 2020-09-23Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636"Hiroshi SHIBATA 2020-09-23Manually merged from https://github.com/rubygems/rubygems/pull/2636Hiroshi SHIBATA 2020-07-31[rubygems/rubygems] Fix skip messageDavid Rodríguez 2020-07-31Enforce no empty lines around class body in rubygemsDavid Rodríguez 2020-06-17Simplify handling of a `LoadError`David Rodríguez 2020-06-15Use space inside block braces everywhereDavid Rodríguez 2020-05-08[rubygems/rubygems] Skip flaky tests on jrubyDavid Rodríguez 2020-05-08[rubygems/rubygems] Remove unnecessary code from remote fetcher testsDavid Rodríguez 2020-05-08[rubygems/rubygems] Remove unnecessary DIR constantDavid Rodríguez 2020-05-08[rubygems/rubygems] Move stuff to the instance levelDavid Rodríguez 2020-05-08Normalize heredoc case in rubygems code baseDavid Rodríguez