|
|
|
@ -2,6 +2,7 @@ require "rails_helper" |
|
|
|
|
|
|
|
|
|
|
|
RSpec.describe Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing, type: :model do |
|
|
|
RSpec.describe Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing, type: :model do |
|
|
|
subject(:page) { described_class.new(page_id, page_definition, subsection) } |
|
|
|
subject(:page) { described_class.new(page_id, page_definition, subsection) } |
|
|
|
|
|
|
|
|
|
|
|
let(:page_id) { nil } |
|
|
|
let(:page_id) { nil } |
|
|
|
let(:page_definition) { nil } |
|
|
|
let(:page_definition) { nil } |
|
|
|
let(:subsection) { instance_double(Form::Subsection) } |
|
|
|
let(:subsection) { instance_double(Form::Subsection) } |
|
|
|
@ -12,7 +13,6 @@ RSpec.describe Form::Lettings::Pages::FirstTimePropertyLetAsSocialHousing, type: |
|
|
|
allow(subsection).to receive(:form).and_return(form) |
|
|
|
allow(subsection).to receive(:form).and_return(form) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "has correct subsection" do |
|
|
|
it "has correct subsection" do |
|
|
|
expect(page.subsection).to eq(subsection) |
|
|
|
expect(page.subsection).to eq(subsection) |
|
|
|
end |
|
|
|
end |
|
|
|
|