Browse Source

fix tests for new FY

pull/3030/head
Carolyn 1 month ago
parent
commit
576277b757
  1. 1
      spec/models/sales_log_spec.rb
  2. 2
      spec/requests/form_controller_spec.rb

1
spec/models/sales_log_spec.rb

@ -102,6 +102,7 @@ RSpec.describe SalesLog, type: :model do
after do
Timecop.return
Singleton.__init__(FormHandler)
end
it "has returns the correct form based on the start date" do

2
spec/requests/form_controller_spec.rb

@ -1675,10 +1675,12 @@ RSpec.describe FormController, type: :request do
context "and changing an answer" do
before do
Timecop.freeze(2024, 5, 6)
Singleton.__init__(FormHandler)
end
after do
Timecop.return
Singleton.__init__(FormHandler)
end
it "navigates to follow-up questions when required" do

Loading…
Cancel
Save