Fix integration spec

This commit is contained in:
Raphael Sofaer 2011-02-28 17:22:40 -08:00
parent a11507d30c
commit ebfebb16d7

View file

@ -341,7 +341,8 @@ describe 'a user receives a post' do
#Create person
person = @user2.person
id = person.id
person.profile = Profile.new(:first_name => 'bob', :last_name => 'billytown', :image_url => "http://clown.com")
person.profile.delete
person.profile = Profile.new(:first_name => 'bob', :last_name => 'billytown', :image_url => "http://clown.com", :person_id => person.id)
person.save
#Cache profile for checking against marshaled profile