Skip to content

Commit

Permalink
mock request to billing in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Sep 26, 2023
1 parent 95284b8 commit 1a48660
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/admin/paid_deposits/deposit_statuses_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ class DepositStatusesTest < ActionDispatch::IntegrationTest
@user = users(:participant)
@admin = users(:administrator)

message = {"message": "Status updated"}
stub_request(:post, "http://eis_billing_system:3000/api/v1/invoice_generator/deposit_status")
.to_return(status: 200, body: message.to_json, headers: {})

sign_in @admin
end

Expand Down

0 comments on commit 1a48660

Please sign in to comment.