diff --git a/spec/intergration/receiving_spec.rb b/spec/intergration/receiving_spec.rb index 18bb5d775..81fbc1ddb 100644 --- a/spec/intergration/receiving_spec.rb +++ b/spec/intergration/receiving_spec.rb @@ -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