Skip to content

Commit

Permalink
Merge pull request #1763 from datadryad/zenodo-copy
Browse files Browse the repository at this point in the history
Turn off zenodo copy of data files
  • Loading branch information
ryscher authored Jul 11, 2024
2 parents ece08a5 + 74694d8 commit 0cf1cdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/stash_engine/curation_activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions spec/models/stash_engine/curation_activity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cf1cdd

Please sign in to comment.