Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #423 from sul-dlss/expect-deprecation
Browse files Browse the repository at this point in the history
Don't warn when the deprecated method is tested
  • Loading branch information
justinlittman committed Dec 19, 2018
2 parents 99fcfe4 + 61cc6a2 commit fdc8c08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/models/concerns/publishable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ class ItemizableItem < ActiveFedora::Base

describe '#publish_metadata' do
it 'calls the service' do
expect(Deprecation).to receive(:warn)
expect(Dor::PublishMetadataService).to receive(:publish).with(@item)
@item.publish_metadata
end
Expand Down

0 comments on commit fdc8c08

Please sign in to comment.