summaryrefslogtreecommitdiff
path: root/spec/ruby/core/enumerable/any_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/enumerable/any_spec.rb')
-rw-r--r--spec/ruby/core/enumerable/any_spec.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/spec/ruby/core/enumerable/any_spec.rb b/spec/ruby/core/enumerable/any_spec.rb
index 64e3159963..636b1fa450 100644
--- a/spec/ruby/core/enumerable/any_spec.rb
+++ b/spec/ruby/core/enumerable/any_spec.rb
@@ -146,14 +146,6 @@ describe "Enumerable#any?" do
end
# may raise an exception in future versions
- ruby_version_is ""..."2.6" do
- it "ignores block" do
- @enum2.any?(NilClass) { raise }.should == true
- [1, 2, nil].any?(NilClass) { raise }.should == true
- {a: 1}.any?(Array) { raise }.should == true
- end
- end
-
it "always returns false on empty enumeration" do
@empty.any?(Integer).should == false
[].any?(Integer).should == false