Skip to content

Commit

Permalink
fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Jun 14, 2024
1 parent 7442b07 commit 9ecea3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/hmrc/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let(:token_expiry) { 99999 }

before do
http_client.stub(:post).with("#{base_url}/oauth/token", headers: nil, body: {
allow(http_client).to receive(:post).with("#{base_url}/oauth/token", headers: nil, body: {
grant_type: "client_credentials",
client_id: client_id,
client_secret: client_secret
Expand Down Expand Up @@ -87,7 +87,7 @@
end

before do
http_client.stub(:post).with("#{base_url}/misc/bank-account/verify/personal", headers: expected_headers, body: expected_payload) do
allow(http_client).to receive(:post).with("#{base_url}/misc/bank-account/verify/personal", headers: expected_headers, body: expected_payload) do
double(body: response_to_return, success?: response_success, code: response_code)
end
end
Expand Down

0 comments on commit 9ecea3e

Please sign in to comment.