Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@nruth

Tiny fix to something I spotted in the Relish docs.
The features still passed afterwards when I tried them (1.8.7).

@dchelimsky dchelimsky merged commit f999770 into rspec:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 1 deletion.
  1. +0 −1  features/method_stubs/as_null_object.feature
View
1  features/method_stubs/as_null_object.feature
@@ -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
Something went wrong with that request. Please try again.