Add settled_at to zaps, scope by settlement status
This commit is contained in:
@@ -167,10 +167,14 @@ RSpec.describe "Webhooks", type: :request do
|
||||
expect(response).to have_http_status(:ok)
|
||||
end
|
||||
|
||||
it "adds the settlement date/time to the zap record" do
|
||||
post "/webhooks/lndhub", params: payload.to_json
|
||||
expect(user.zaps.first.settled_at.to_i).to eq(1673428978)
|
||||
end
|
||||
|
||||
it "creates and adds a zap receipt to the zap record" do
|
||||
post "/webhooks/lndhub", params: payload.to_json
|
||||
zap = user.zaps.first
|
||||
expect(zap.receipt).not_to be_nil
|
||||
expect(user.zaps.first.receipt).not_to be_nil
|
||||
end
|
||||
|
||||
it "publishes the zap receipt" do
|
||||
|
||||
Reference in New Issue
Block a user