Browse Source

Fix intermiten test (#876)

pull/877/head
kosiakkatrina 2 years ago committed by GitHub
parent
commit
07350c76f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      spec/models/form_handler_spec.rb

4
spec/models/form_handler_spec.rb

@ -3,15 +3,15 @@ require "rails_helper"
RSpec.describe FormHandler do
let(:form_handler) { described_class.instance }
before { Singleton.__init__(described_class) } # reload FormHandler Instance to update form definitions between runs
context "when accessing a form in a different year" do
before do
Timecop.freeze(Time.utc(2021, 8, 3))
Singleton.__init__(described_class)
end
after do
Timecop.unfreeze
Singleton.__init__(described_class) # reload FormHandler Instance to update form definitions between runs
end
it "is able to load a current lettings form" do

Loading…
Cancel
Save