Add LndHub service, lnurl-pay endpoints
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

Enables the lnurl-pay payment workflow
This commit is contained in:
2021-11-22 15:41:05 -06:00
parent 884070a3cb
commit dbc811b840
10 changed files with 158 additions and 23 deletions

View File

@@ -0,0 +1,15 @@
require 'rails_helper'
# Specs in this file have access to a helper object that includes
# the LnurlpayHelper. For example:
#
# describe LnurlpayHelper do
# describe "string concat" do
# it "concats two strings with spaces" do
# expect(helper.concat_strings("this","that")).to eq("this that")
# end
# end
# end
RSpec.describe LnurlpayHelper, type: :helper do
pending "add some examples to (or delete) #{__FILE__}"
end

View File

@@ -16,7 +16,7 @@ RSpec.describe CreateLndhubWalletJob, type: :job do
perform_enqueued_jobs { job }
expect(WebMock).to have_requested(:post, "http://10.1.1.163:3023/create")
.with { |req| req.body == '{"partnerid":"bluewallet","accounttype":"common"}' }
.with { |req| req.body == '{"partnerid":"kosmos.org","accounttype":"user"}' }
user.reload
expect(user.ln_login).to eq("abc123")

View File

@@ -0,0 +1,7 @@
require 'rails_helper'
RSpec.describe "Lnurlpays", type: :request do
describe "GET /index" do
pending "add some examples (or delete) #{__FILE__}"
end
end