Skip to content
Extraits de code Groupes Projets
Valider 0df179c5 rédigé par danielgrippi's avatar danielgrippi
Parcourir les fichiers

fix specs

parent fce3cba9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -31,13 +31,13 @@ describe HydraWrapper do ...@@ -31,13 +31,13 @@ describe HydraWrapper do
end end
end end
describe '#salmon' do describe '#xml_factory' do
it 'calls the salmon method on the dispatcher class (and memoizes)' do it 'calls the salmon method on the dispatcher class (and memoizes)' do
Base64.stub(:decode64).and_return(@wrapper.encoded_object_xml + 'decoded') Base64.stub(:decode64).and_return(@wrapper.encoded_object_xml + 'decoded')
decoded = Base64.decode64(@wrapper.encoded_object_xml) decoded = Base64.decode64(@wrapper.encoded_object_xml)
@wrapper.dispatcher_class.should_receive(:salmon).with(@wrapper.user, decoded).once.and_return(true) @wrapper.dispatcher_class.should_receive(:salmon).with(@wrapper.user, decoded).once.and_return(true)
@wrapper.salmon @wrapper.xml_factory
@wrapper.salmon @wrapper.xml_factory
end end
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