1.9.2 doesn't like friending people when the target doesn't have any aspects. ::sigh:: And with that, I fix the cucumber feature that was failing under 1.9.

This commit is contained in:
Sarah Mei 2010-11-15 21:52:02 -08:00
parent 9fa47c9bfa
commit 686cea6595
4 changed files with 299 additions and 299 deletions

View file

@ -353,7 +353,7 @@ GEM
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.14.4)
treetop (1.4.8)
treetop (1.4.9)
polyglot (>= 0.3.1)
twitter (0.9.12)
hashie (~> 0.4.0)

View file

@ -2,6 +2,7 @@ Feature: managing contact requests
Background:
Given I am signed in
And I have an aspect called "Family"
And I have one contact request
Scenario: seeing contact requests
@ -10,8 +11,6 @@ Feature: managing contact requests
@javascript @wip
Scenario: accepting a contact request
Given I have an aspect called "Family"
When I am on the home page
And I follow "Manage (1)"
Then I should see 1 contact request

View file

@ -14,10 +14,11 @@ end
Given /^I have one contact request$/ do
other_user = make_user
other_user.aspects.create!(:name => "meh")
other_aspect = other_user.aspects.create!(:name => "meh")
other_user.send_contact_request_to(@me.person, other_aspect)
other_user.reload
other_user.send_contact_request_to(@me.person, other_user.aspects.first)
other_aspect.reload
@me.reload
end

File diff suppressed because it is too large Load diff