Skip to content
Extraits de code Groupes Projets
Valider 35a830aa rédigé par Raphael's avatar Raphael
Parcourir les fichiers

Fix profile update spec

parent c58b4706
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter