Permalink
Browse files

don't use tap in feature (no tap in 1.8.6)

  • Loading branch information...
1 parent 63a2f73 commit a568a03883c4ff23b23ac17b9cba3773ca395326 @dchelimsky dchelimsky committed Nov 1, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 features/subject/attribute_of_subject.feature
@@ -35,9 +35,9 @@ Feature: attribute of subject
describe Person do
subject do
- Person.new.tap do |person|
- person.phone_numbers << "555-1212"
- end
+ person = Person.new
+ person.phone_numbers << "555-1212"
+ person
end
its("phone_numbers.first") { should == "555-1212" }

0 comments on commit a568a03

Please sign in to comment.