fix specs

This commit is contained in:
danielgrippi 2012-02-27 17:56:52 -08:00
parent fce3cba946
commit 0df179c514

View file

@ -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