blob: b7531c967dbae0278987684343c52c94fe37b913 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/select', __FILE__)
describe "Array#select" do
it_behaves_like :array_select, :select
end
describe "Array#select!" do
it "returns nil if no changes were made in the array" do
[1, 2, 3].select! { true }.should be_nil
end
it_behaves_like :keep_if, :select!
end
|