Skip to content

Commit

Permalink
Merge 5a053dc into e9f2cb9
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Apr 23, 2019
2 parents e9f2cb9 + 5a053dc commit d4de751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/objects_controller.rb
Expand Up @@ -41,7 +41,7 @@ def initialize_workspace
end

def publish
@item.publish_metadata
Dor::PublishMetadataService.publish(@item)
head :created
end

Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/objects_controller_spec.rb
Expand Up @@ -91,7 +91,7 @@

describe '/publish' do
it 'calls publish metadata' do
expect(item).to receive(:publish_metadata)
expect(Dor::PublishMetadataService).to receive(:publish).with(item)
post :publish, params: { id: item.pid }
expect(response.status).to eq(201)
end
Expand Down

0 comments on commit d4de751

Please sign in to comment.