blob: a3fdcf4fac3c7972ab57bdd39dac626910b1b0c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
describe :delete_if, shared: true do
before :each do
@object = [1,2,3]
end
it "updates the receiver after all blocks" do
@object.send(@method) do |e|
@object.length.should == 3
true
end
@object.length.should == 0
end
end
|