|
|
|
@ -6,9 +6,7 @@ RSpec.describe Form::Sales::Questions::OwningOrganisationId, type: :model do |
|
|
|
let(:user) { FactoryBot.create(:user, :data_coordinator) } |
|
|
|
let(:user) { FactoryBot.create(:user, :data_coordinator) } |
|
|
|
let(:question_id) { nil } |
|
|
|
let(:question_id) { nil } |
|
|
|
let(:question_definition) { nil } |
|
|
|
let(:question_definition) { nil } |
|
|
|
let(:page) { instance_double(Form::Page) } |
|
|
|
let(:page) { instance_double(Form::Page, subsection: instance_double(Form::Subsection, form: instance_double(Form, start_date: Time.zone.local(2023, 4, 1)))) } |
|
|
|
let(:subsection) { instance_double(Form::Subsection) } |
|
|
|
|
|
|
|
let(:form) { instance_double(Form) } |
|
|
|
|
|
|
|
let!(:organisation_1) { FactoryBot.create(:organisation, name: "first test org") } |
|
|
|
let!(:organisation_1) { FactoryBot.create(:organisation, name: "first test org") } |
|
|
|
let!(:organisation_2) { FactoryBot.create(:organisation, name: "second test org") } |
|
|
|
let!(:organisation_2) { FactoryBot.create(:organisation, name: "second test org") } |
|
|
|
let(:lettings_log) { FactoryBot.create(:lettings_log) } |
|
|
|
let(:lettings_log) { FactoryBot.create(:lettings_log) } |
|
|
|
|