From cc915a1befb8a13c7f13b864703631faf741eca7 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 30 Jan 2024 23:09:33 -0500 Subject: [PATCH] Support newer webmock --- test/test_electrum.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_electrum.rb b/test/test_electrum.rb index fbffe9f179d34ab5eaeabce7e7c8386264f97d99..7ba18c258d1e6e80db9bc759cdfa8e2ce2b5b45f 100644 --- a/test/test_electrum.rb +++ b/test/test_electrum.rb @@ -17,8 +17,10 @@ class ElectrumTest < Minitest::Test def stub_rpc(method, params) stub_request(:post, RPC_URI).with( - headers: { "Content-Type" => "application/json" }, - basic_auth: ["username", "password"], + headers: { + "Content-Type" => "application/json", + "Authorization" => ["username", "password"] + }, body: hash_including( method: method, params: params