Use fixtures in system tests

This commit is contained in:
Andrew Tomaka 2023-11-22 19:04:54 -05:00
parent c0e0c4ef8f
commit 2c785a8ee1
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ require "application_system_test_case"
class ExpensesTest < ApplicationSystemTestCase class ExpensesTest < ApplicationSystemTestCase
setup do setup do
@expense = expenses(:one) @expense = expenses(:monthly_expense)
end end
test "visiting the index" do test "visiting the index" do

View file

@ -2,7 +2,7 @@ require "application_system_test_case"
class IncomesTest < ApplicationSystemTestCase class IncomesTest < ApplicationSystemTestCase
setup do setup do
@income = incomes(:one) @income = incomes(:included_1)
end end
test "visiting the index" do test "visiting the index" do