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