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