Browse Source

Test copy key when specified on subsection

pull/2792/head
Rachael Booth 7 months ago
parent
commit
61b8305d7b
  1. 4
      spec/models/form/sales/subsections/discounted_ownership_scheme_spec.rb
  2. 4
      spec/models/form/sales/subsections/outright_sale_spec.rb
  3. 4
      spec/models/form/sales/subsections/shared_ownership_scheme_spec.rb

4
spec/models/form/sales/subsections/discounted_ownership_scheme_spec.rb

@ -56,6 +56,10 @@ RSpec.describe Form::Sales::Subsections::DiscountedOwnershipScheme, type: :model
expect(discounted_ownership_scheme.id).to eq("discounted_ownership_scheme")
end
it "has the correct copy key" do
expect(discounted_ownership_scheme.copy_key).to eq("sale_information")
end
it "has the correct label" do
expect(discounted_ownership_scheme.label).to eq("Discounted ownership scheme")
end

4
spec/models/form/sales/subsections/outright_sale_spec.rb

@ -109,6 +109,10 @@ RSpec.describe Form::Sales::Subsections::OutrightSale, type: :model do
expect(outright_sale.id).to eq("outright_sale")
end
it "has the correct copy key" do
expect(outright_sale.copy_key).to eq("sale_information")
end
it "has the correct label" do
expect(outright_sale.label).to eq("Outright sale")
end

4
spec/models/form/sales/subsections/shared_ownership_scheme_spec.rb

@ -65,6 +65,10 @@ RSpec.describe Form::Sales::Subsections::SharedOwnershipScheme, type: :model do
expect(shared_ownership_scheme.id).to eq("shared_ownership_scheme")
end
it "has the correct copy key" do
expect(shared_ownership_scheme.copy_key).to eq("sale_information")
end
it "has the correct label" do
expect(shared_ownership_scheme.label).to eq("Shared ownership scheme")
end

Loading…
Cancel
Save