Browse Source

fix tests for new FY (#3030)

Co-authored-by: Carolyn <carolyn.barker@softwire.com>
Co-authored-by: Manny Dinssa <44172848+Dinssa@users.noreply.github.com>
pull/3032/head
carolynbarker 2 weeks ago committed by GitHub
parent
commit
3c272782f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      spec/models/sales_log_spec.rb
  2. 2
      spec/requests/form_controller_spec.rb

1
spec/models/sales_log_spec.rb

@ -104,6 +104,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