diff options
Diffstat (limited to 'spec/ruby/core/enumerator/lazy/uniq_spec.rb')
-rw-r--r-- | spec/ruby/core/enumerator/lazy/uniq_spec.rb | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/spec/ruby/core/enumerator/lazy/uniq_spec.rb b/spec/ruby/core/enumerator/lazy/uniq_spec.rb index d31e816faf..3c9acdc453 100644 --- a/spec/ruby/core/enumerator/lazy/uniq_spec.rb +++ b/spec/ruby/core/enumerator/lazy/uniq_spec.rb @@ -13,9 +13,11 @@ ruby_version_is '2.4' do @lazy.force.should == [0, 1] end - it 'return same value after rewind' do - @lazy.force.should == [0, 1] - @lazy.force.should == [0, 1] + ruby_bug "#14495", "2.4"..."2.5.1" do + it 'return same value after rewind' do + @lazy.force.should == [0, 1] + @lazy.force.should == [0, 1] + end end it 'sets the size to nil' do @@ -33,9 +35,11 @@ ruby_version_is '2.4' do @lazy.force.should == [0, 1] end - it 'return same value after rewind' do - @lazy.force.should == [0, 1] - @lazy.force.should == [0, 1] + ruby_bug "#14495", "2.4"..."2.5.1" do + it 'return same value after rewind' do + @lazy.force.should == [0, 1] + @lazy.force.should == [0, 1] + end end it 'sets the size to nil' do @@ -56,10 +60,12 @@ ruby_version_is '2.4' do @lazy = enum.lazy end - it 'return same value after rewind' do - enum = @lazy.uniq { |_, label| label.downcase } - enum.force.should == [[0, 'foo'], [2, 'bar']] - enum.force.should == [[0, 'foo'], [2, 'bar']] + ruby_bug "#14495", "2.4"..."2.5.1" do + it 'return same value after rewind' do + enum = @lazy.uniq { |_, label| label.downcase } + enum.force.should == [[0, 'foo'], [2, 'bar']] + enum.force.should == [[0, 'foo'], [2, 'bar']] + end end it 'returns all yield arguments as an array' do |