From ebfebb16d7833c81d7fdb3a9bc66959ef42588c7 Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Mon, 28 Feb 2011 17:22:40 -0800 Subject: [PATCH] Fix integration spec --- spec/intergration/receiving_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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