blob: 31cd8c46d62b2433c547727327f827ae45977883 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require_relative '../../spec_helper'
require_relative 'shared/iterable_and_tolerating_size_increasing'
describe "Array#none?" do
@value_to_return = -> _ { false }
it_behaves_like :array_iterable_and_tolerating_size_increasing, :none?
it "ignores the block if there is an argument" do
-> {
['bar', 'foobar'].none?(/baz/) { true }.should == true
}.should complain(/given block not used/)
end
end
|