diff --git a/spec/lib/hydra_wrapper_spec.rb b/spec/lib/hydra_wrapper_spec.rb index 1218642e30de761aaf0c71522c8700975ca3647c..97549d812557455826985d45d89a96afb440a330 100644 --- a/spec/lib/hydra_wrapper_spec.rb +++ b/spec/lib/hydra_wrapper_spec.rb @@ -31,13 +31,13 @@ describe HydraWrapper do end end - describe '#salmon' do + describe '#xml_factory' do it 'calls the salmon method on the dispatcher class (and memoizes)' do Base64.stub(:decode64).and_return(@wrapper.encoded_object_xml + 'decoded') decoded = Base64.decode64(@wrapper.encoded_object_xml) @wrapper.dispatcher_class.should_receive(:salmon).with(@wrapper.user, decoded).once.and_return(true) - @wrapper.salmon - @wrapper.salmon + @wrapper.xml_factory + @wrapper.xml_factory end end