diff --git a/app/models/stash_engine/curation_activity.rb b/app/models/stash_engine/curation_activity.rb index 8fd0a14ede..3cc522259a 100644 --- a/app/models/stash_engine/curation_activity.rb +++ b/app/models/stash_engine/curation_activity.rb @@ -258,7 +258,7 @@ def process_resource end def copy_to_zenodo - resource.send_to_zenodo + # Copy only software and supplemental files to zenodo | resource.send_to_zenodo resource.send_software_to_zenodo(publish: true) resource.send_supp_to_zenodo(publish: true) end diff --git a/spec/models/stash_engine/curation_activity_spec.rb b/spec/models/stash_engine/curation_activity_spec.rb index 3d75f6bd1a..5416b4db9c 100644 --- a/spec/models/stash_engine/curation_activity_spec.rb +++ b/spec/models/stash_engine/curation_activity_spec.rb @@ -175,8 +175,8 @@ module StashEngine @curation_activity = create(:curation_activity, resource: @resource) end - it 'calls three zenodo methods to copy software, supplemental and data (3rd copy)' do - expect(@resource).to receive(:send_to_zenodo).and_return('test1') + it 'calls two zenodo methods to copy software and supplemental' do + # expect(@resource).to receive(:send_to_zenodo).and_return('test1') expect(@resource).to receive(:send_software_to_zenodo).with(publish: true).and_return('test2') expect(@resource).to receive(:send_supp_to_zenodo).with(publish: true).and_return('test3') @curation_activity.copy_to_zenodo