From 91d3b977e9df37f2ae86633f0a8343db8c2b232d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 20 Sep 2023 18:26:50 +0200 Subject: [PATCH] Fix spec --- spec/requests/api/btcpay_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/api/btcpay_spec.rb b/spec/requests/api/btcpay_spec.rb index 7203df7..6774652 100644 --- a/spec/requests/api/btcpay_spec.rb +++ b/spec/requests/api/btcpay_spec.rb @@ -62,12 +62,12 @@ RSpec.describe "/api/btcpay", type: :request do context "upstream request error" 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: "") end 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)