mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@b65d01f
This commit is contained in:
parent
15d05f8120
commit
6998d75824
186 changed files with 3956 additions and 3339 deletions
|
@ -101,14 +101,6 @@ describe "Enumerable#none?" do
|
|||
end
|
||||
|
||||
# may raise an exception in future versions
|
||||
ruby_version_is ""..."2.6" do
|
||||
it "ignores block" do
|
||||
@enum2.none?(Integer) { raise }.should == true
|
||||
[1, 2, nil].none?(TrueClass) { raise }.should == true
|
||||
{a: 1}.none?(Hash) { raise }.should == true
|
||||
end
|
||||
end
|
||||
|
||||
it "always returns true on empty enumeration" do
|
||||
@empty.none?(Integer).should == true
|
||||
[].none?(Integer).should == true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue