diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-27 10:10:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-27 10:19:09 +0900 |
commit | 9b55a9649fb1973180559a067cfee0d6f234fef8 (patch) | |
tree | f2c15ed688e6131bdac05f483aa0a00013e90c2c /spec/ruby/core/array/shuffle_spec.rb | |
parent | e710e9e886c5b56a6c5f6a034748a498114fc3db (diff) | |
download | ruby-9b55a9649fb1973180559a067cfee0d6f234fef8.tar.gz |
Removed useless "spec"s
It is not specific to particular methods that keyword option
arguments are coerced to `Hash`es using `to_hash` method.
Diffstat (limited to 'spec/ruby/core/array/shuffle_spec.rb')
-rw-r--r-- | spec/ruby/core/array/shuffle_spec.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/ruby/core/array/shuffle_spec.rb b/spec/ruby/core/array/shuffle_spec.rb index 106ef05ce2..857062c4c9 100644 --- a/spec/ruby/core/array/shuffle_spec.rb +++ b/spec/ruby/core/array/shuffle_spec.rb @@ -25,15 +25,6 @@ describe "Array#shuffle" do ArraySpecs::MyArray[1, 2, 3].shuffle.should be_an_instance_of(Array) end - ruby_version_is ""..."2.8" do - # keyword argument since 2.8 - it "attempts coercion via #to_hash" do - obj = mock('hash') - obj.should_receive(:to_hash).once.and_return({}) - [2, 3].shuffle(obj) - end - end - it "calls #rand on the Object passed by the :random key in the arguments Hash" do obj = mock("array_shuffle_random") obj.should_receive(:rand).at_least(1).times.and_return(0.5) |