Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Use the null object, rather than re-assigning another double #104

Merged
merged 1 commit into from Feb 3, 2012
Jump to file or symbol
Failed to load files and symbols.
+0 −1
Split
@@ -27,7 +27,6 @@ Feature: as_null_object
end
it "supports Array#flatten" do
- null_object = double('foo')
[null_object].flatten.should eq([null_object])
end
end