|
|
|
@ -17,18 +17,8 @@ RSpec.describe Form::Sales::Pages::PropertyLocalAuthority, type: :model do |
|
|
|
expect(page.subsection).to eq(subsection) |
|
|
|
expect(page.subsection).to eq(subsection) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
describe "has correct questions" do |
|
|
|
it "has correct questions" do |
|
|
|
context "when 2023" do |
|
|
|
expect(page.questions.map(&:id)).to eq(%w[la]) |
|
|
|
let(:start_date) { Time.utc(2023, 2, 8) } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "has correct questions" do |
|
|
|
|
|
|
|
expect(page.questions.map(&:id)).to eq( |
|
|
|
|
|
|
|
%w[ |
|
|
|
|
|
|
|
la |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "has the correct id" do |
|
|
|
it "has the correct id" do |
|
|
|
|