Test credit card bill
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Andrew Tomaka 2023-11-22 20:06:38 -05:00
parent 7bcb669773
commit 6272fd7cf9
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 7 additions and 9 deletions

View file

@ -1,9 +1,5 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
description: MyString
amount: 9.99
two:
description: MyString
amount: 9.99
description: Credit Card Bill One
amount: 1_000.00

View file

@ -1,7 +1,9 @@
require "test_helper"
class CreditCardBillTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
def test_unpaid
credit_card_bill = credit_card_bills(:one)
assert_equal 870.00, credit_card_bill.unpaid
end
end