From 6272fd7cf903989a5560d455daaca1f861fac08a Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 22 Nov 2023 20:06:38 -0500 Subject: [PATCH] Test credit card bill --- test/fixtures/credit_card_bills.yml | 8 ++------ test/models/credit_card_bill_test.rb | 8 +++++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/test/fixtures/credit_card_bills.yml b/test/fixtures/credit_card_bills.yml index ca0607b..4aa6d0c 100644 --- a/test/fixtures/credit_card_bills.yml +++ b/test/fixtures/credit_card_bills.yml @@ -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 diff --git a/test/models/credit_card_bill_test.rb b/test/models/credit_card_bill_test.rb index f0558a5..d40a388 100644 --- a/test/models/credit_card_bill_test.rb +++ b/test/models/credit_card_bill_test.rb @@ -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