Skip to content

Commit

Permalink
quiet deprecation warnings when running sdr class specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Dec 9, 2019
1 parent 8304bd0 commit 502a8ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/controllers/sdr_controller_spec.rb
Expand Up @@ -7,6 +7,7 @@

before do
allow(Dor).to receive(:find).and_return(item)
allow(Deprecation).to receive(:warn)
end

before do
Expand Down
4 changes: 4 additions & 0 deletions spec/services/sdr_client_spec.rb
Expand Up @@ -10,6 +10,10 @@
let(:url) { 'http://sdr-services.example.com/sdr/objects/druid:ab123cd4567/current_version' }
let(:url_with_basic_auth) { url.sub('http://', 'http://user:password@') }

before do
allow(Deprecation).to receive(:warn)
end

it 'returns the current of the object from SDR' do
stub_request(:get, url)
.with(headers: { 'Authorization' => 'Basic dXNlcjpwYXNzd29yZA==' })
Expand Down

0 comments on commit 502a8ae

Please sign in to comment.