Browse Source

Remove redundant FormHandler reinitialise

pull/1415/head
Kat 3 years ago
parent
commit
4bed6f8e01
  1. 1
      spec/helpers/tasklist_helper_spec.rb
  2. 2
      spec/models/sales_log_spec.rb
  3. 1
      spec/models/validations/sales/setup_validations_spec.rb

1
spec/helpers/tasklist_helper_spec.rb

@ -9,7 +9,6 @@ RSpec.describe TasklistHelper do
example.run example.run
end end
Timecop.return Timecop.return
Singleton.__init__(FormHandler)
end end
describe "with lettings" do describe "with lettings" do

2
spec/models/sales_log_spec.rb

@ -247,7 +247,6 @@ RSpec.describe SalesLog, type: :model do
after do after do
Timecop.unfreeze Timecop.unfreeze
Singleton.__init__(FormHandler)
end end
it "correctly sets la as nil" do it "correctly sets la as nil" do
@ -278,7 +277,6 @@ RSpec.describe SalesLog, type: :model do
after do after do
Timecop.unfreeze Timecop.unfreeze
Singleton.__init__(FormHandler)
end end
it "correctly infers new la" do it "correctly infers new la" do

1
spec/models/validations/sales/setup_validations_spec.rb

@ -55,7 +55,6 @@ RSpec.describe Validations::Sales::SetupValidations do
example.run example.run
end end
Timecop.return Timecop.return
Singleton.__init__(FormHandler)
end end
context "when saledate is blank" do context "when saledate is blank" do

Loading…
Cancel
Save