BTCPay settings, admin page, and new Lightning balance API #147

Merged
raucao merged 12 commits from feature/btcpay_configs into master 2023-09-26 10:13:09 +00:00
Showing only changes of commit 91d3b977e9 - Show all commits

View File

@@ -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)