WIP Add wallet transactions route, view
All checks were successful
continuous-integration/drone/push Build is passing

Adds a new component for the wallet summary as well, and makes the
component tests work with RSpec.
This commit is contained in:
2022-03-02 15:31:10 -06:00
parent 10f179a095
commit cf62bfc5c2
8 changed files with 65 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
require "rails_helper"
RSpec.describe WalletSummaryComponent, type: :component do
it "renders the balance as a human-readable number" do
expect(
render_inline(described_class.new(balance: 2301000)) {}.css("section").to_html
).to include(
"2,301,000 sats"
)
end
end