From bfa38ad7b2eb978b25a3b68641c57c7e8d1588ca Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 22 Nov 2021 16:24:42 -0600 Subject: [PATCH] Adjust spec for new development config --- spec/jobs/create_lndhub_wallet_job_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/jobs/create_lndhub_wallet_job_spec.rb b/spec/jobs/create_lndhub_wallet_job_spec.rb index 754cf71..4b64ba1 100644 --- a/spec/jobs/create_lndhub_wallet_job_spec.rb +++ b/spec/jobs/create_lndhub_wallet_job_spec.rb @@ -7,7 +7,7 @@ RSpec.describe CreateLndhubWalletJob, type: :job do subject(:job) { described_class.perform_later(user) } before do - stub_request(:post, "http://10.1.1.163:3023/create") + stub_request(:post, "http://localhost:3023/create") .to_return(status: 200, headers: {}, body: { login: "abc123", password: "def456" }.to_json) end @@ -15,7 +15,7 @@ RSpec.describe CreateLndhubWalletJob, type: :job do it "creates a new LndHub account" do perform_enqueued_jobs { job } - expect(WebMock).to have_requested(:post, "http://10.1.1.163:3023/create") + expect(WebMock).to have_requested(:post, "http://localhost:3023/create") .with { |req| req.body == '{"partnerid":"kosmos.org","accounttype":"user"}' } user.reload @@ -33,7 +33,7 @@ RSpec.describe CreateLndhubWalletJob, type: :job do it "does not create a new LndHub account" do perform_enqueued_jobs { job } - expect(WebMock).to_not have_requested(:post, "http://10.1.1.163:3023/create") + expect(WebMock).to_not have_requested(:post, "http://localhost:3023/create") user.reload expect(user.ln_login).to eq("foo")