Skip to content

Commit

Permalink
🥗🧹 Tobias: Check Payout#amount and Payout#beneficiaries
Browse files Browse the repository at this point in the history
A few more `Payout` bits that didn't have specs! Now they do!
  • Loading branch information
zspencer committed Jan 29, 2024
1 parent e79e2b6 commit 2289a9d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/tobias/payout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
it { is_expected.to have_many(:payments).inverse_of(:payout).dependent(:destroy) }
end

describe "#beneficiaries" do
it { is_expected.to have_many(:beneficiaries).through(:trust) }
end

describe "#amount" do
it { is_expected.to monetize(:amount) }
end

describe "#issue" do
it "issues a Payment to each Beneficiary for their share of the #amount" do
payout = create(:tobias_payout, amount_cents: 150_00)
Expand Down

0 comments on commit 2289a9d

Please sign in to comment.