Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Pin the skipped-occurrence review test to mid-month (#4108)

Guillem Arias Faustec1405be40b87
diff --git a/test/controllers/bills_controller_test.rb b/test/controllers/bills_controller_test.rb
index ce339984bb..1e902602f5 100644
--- a/test/controllers/bills_controller_test.rb
+++ b/test/controllers/bills_controller_test.rb
@@ -2395,6 +2395,8 @@ class BillsControllerTest < ActionDispatch::IntegrationTest
# Skipping closes the occurrence but keeps its suggestion. Before this month
# the overview no longer lists the row, so the queue mustn't ask about it.
test "a suggestion against a skipped occurrence from last month stays out of the payment review queue" do
+ travel_to Date.current.beginning_of_month + 9.days
+
due = Date.current.beginning_of_month - 10
bill = declare_bill(name: "SKIPPED GYM", amount: 40, due: due)
RecurringTransaction::OccurrenceGenerator.new(bill).generate!