Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit a568a03883c4ff23b23ac17b9cba3773ca395326 1 parent 63a2f73
@dchelimsky dchelimsky authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 features/subject/attribute_of_subject.feature
View
6 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" }
Please sign in to comment.
Something went wrong with that request. Please try again.