Fix spec
This commit is contained in:
parent
1949f1876f
commit
91d3b977e9
@ -62,12 +62,12 @@ RSpec.describe "/api/btcpay", type: :request do
|
|||||||
|
|
||||||
context "upstream request error" do
|
context "upstream request error" do
|
||||||
before do
|
before do
|
||||||
stub_request(:get, "http://btcpay.example.com/api/v1/stores/123456/payment-methods/onchain/BTC/wallet")
|
stub_request(:get, "http://btcpay.example.com/api/v1/stores/123456/lightning/BTC/balance")
|
||||||
.to_return(status: 500, headers: {}, body: "")
|
.to_return(status: 500, headers: {}, body: "")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns a formatted error" do
|
it "returns a formatted error" do
|
||||||
get api_btcpay_onchain_btc_balance_path
|
get api_btcpay_lightning_btc_balance_path
|
||||||
|
|
||||||
expect(response).to have_http_status(:server_error)
|
expect(response).to have_http_status(:server_error)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user