Skip to content
Extraits de code Groupes Projets
Valider dbf14529 rédigé par zhitomirskiyi's avatar zhitomirskiyi
Parcourir les fichiers

fixed an outdated integration test

parent e75c2850
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -324,18 +324,11 @@ describe 'a user receives a post' do
person.save
#Cache profile for checking against marshaled profile
old_profile = person.profile.dup
old_profile.first_name.should == 'bob'
new_profile = person.profile.dup
new_profile.first_name = 'boo!!!'
#Build xml for profile, clear profile
xml = person.profile.to_diaspora_xml
reloaded_person = Person.find(id)
reloaded_person.profile.delete
reloaded_person.save(:validate => false)
#Make sure profile is cleared
Person.find(id).profile.should be nil
old_profile.first_name.should == 'bob'
#Build xml for profile
xml = new_profile.to_diaspora_xml
#Marshal profile
zord = Postzord::Receiver.new(@user1, :person => person)
......@@ -343,9 +336,8 @@ describe 'a user receives a post' do
#Check that marshaled profile is the same as old profile
person = Person.find(person.id)
person.profile.should_not be nil
person.profile.first_name.should == old_profile.first_name
person.profile.last_name.should == old_profile.last_name
person.profile.image_url.should == old_profile.image_url
person.profile.first_name.should == new_profile.first_name
person.profile.last_name.should == new_profile.last_name
person.profile.image_url.should == new_profile.image_url
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