You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
687 B
29 lines
687 B
require "rails_helper" |
|
|
|
RSpec.describe Form::Lettings::Sections::Setup, type: :model do |
|
subject(:setup) { described_class.new(section_id, section_definition, form) } |
|
|
|
let(:section_id) { nil } |
|
let(:section_definition) { nil } |
|
let(:form) { instance_double(Form) } |
|
|
|
it "has correct form" do |
|
expect(setup.form).to eq(form) |
|
end |
|
|
|
it "has correct subsections" do |
|
expect(setup.subsections.map(&:id)).to eq(%w[setup]) |
|
end |
|
|
|
it "has the correct id" do |
|
expect(setup.id).to eq("setup") |
|
end |
|
|
|
it "has the correct label" do |
|
expect(setup.label).to eq("Before you start") |
|
end |
|
|
|
it "has the correct description" do |
|
expect(setup.description).to eq("") |
|
end |
|
end
|
|
|