Skip to content

Commit

Permalink
Merge dcb08a0 into ed57619
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlittman committed May 21, 2019
2 parents ed57619 + dcb08a0 commit 0c87181
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -143,7 +143,7 @@ GEM
faraday (~> 0.15)
moab-versioning (~> 4.0)
nokogiri (~> 1.8)
dor-workflow-client (3.1.0)
dor-workflow-client (3.2.0)
activesupport (>= 3.2.1, < 6)
confstruct (>= 0.2.7, < 2)
deprecation (~> 0)
Expand Down
2 changes: 1 addition & 1 deletion app/services/registration_service.rb
Expand Up @@ -139,7 +139,7 @@ def initiate_workflow(workflows:, item:, priority:)
Honeybadger.notify("RegistrationService received deprecated parameter `initiate_workflow' with: `#{workflows.inspect}'") if workflows.present?

workflows.each do |workflow_id|
Dor::Config.workflow.client.create_workflow_by_name(item.pid, workflow_id, priority: priority)
Dor::Config.workflow.client.create_workflow_by_name(item.pid, workflow_id, priority: priority, version: item.current_version)
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/services/registration_service_spec.rb
Expand Up @@ -341,7 +341,7 @@
expect(obj.label).to eq('a' * 254)
end

context 'when workflow priority is passed in' do
context 'when initiate workflow is passed in' do
let(:workflow_client) { instance_double(Dor::Workflow::Client, create_workflow_by_name: true) }

before do
Expand All @@ -352,7 +352,7 @@
@params[:workflow_priority] = 50
@params[:initiate_workflow] = 'digitizationWF'
register
expect(workflow_client).to have_received(:create_workflow_by_name).with(String, 'digitizationWF', priority: 50)
expect(workflow_client).to have_received(:create_workflow_by_name).with(String, 'digitizationWF', priority: 50, version: '1')
end
end
end # context common cases
Expand Down

0 comments on commit 0c87181

Please sign in to comment.