Browse Source

Load FormFixture only in tests (#1643)

It caused superclass mismatch errors. We can stop seeing this bug in local development by defining the class only in test environments
pull/1634/head
Jack 2 years ago committed by GitHub
parent
commit
31ea432cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spec/factories/form.rb

2
spec/factories/form.rb

@ -1,3 +1,4 @@
if Rails.env.test?
class FormFixture < Form class FormFixture < Form
attr_accessor :sections, :subsections, :pages, :questions attr_accessor :sections, :subsections, :pages, :questions
end end
@ -23,3 +24,4 @@ class FormFactory
form form
end end
end end
end

Loading…
Cancel
Save