diff options
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) |