From 35a830aa03cfa27b1bbc84db1da686c9ff4b8e79 Mon Sep 17 00:00:00 2001
From: Raphael <raphael@joindiaspora.com>
Date: Thu, 21 Oct 2010 10:39:19 -0700
Subject: [PATCH] Fix profile update spec

---
 spec/models/user_spec.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 427b6b74f9..ab1c005ee2 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -143,13 +143,13 @@ describe User do
 
   context 'profiles' do
     it 'should be able to update their profile and send it to their friends' do
-      updated_profile = {:profile => {
+      updated_profile = {
         :first_name => 'bob',
         :last_name => 'billytown',
-        :image_url => "http://clown.com"}}
+        :image_url => "http://clown.com"}
 
       user.update_profile(updated_profile).should be true
-      user.profile.image_url.should == "http://clown.com"
+      user.reload.profile.image_url.should == "http://clown.com"
     end
   end
 
-- 
GitLab