Browse Source

update model tests

CLDC-3787-Autocomplete-address-search
Manny Dinssa 2 weeks ago
parent
commit
64acabb994
  1. 13
      spec/models/form/lettings/subsections/property_information_spec.rb
  2. 10
      spec/models/form/sales/subsections/property_information_spec.rb

13
spec/models/form/lettings/subsections/property_information_spec.rb

@ -29,8 +29,7 @@ RSpec.describe Form::Lettings::Subsections::PropertyInformation, type: :model do
it "has correct pages" do
expect(property_information.pages.map(&:id)).to eq(
%w[
uprn
uprn_confirmation
address_search
address
property_local_authority
local_authority_rent_value_check
@ -64,12 +63,7 @@ RSpec.describe Form::Lettings::Subsections::PropertyInformation, type: :model do
it "has correct pages" do
expect(property_information.pages.map(&:id)).to eq(
%w[
uprn
uprn_confirmation
address_search
address_matcher
no_address_found
uprn_selection
address
property_local_authority
local_authority_rent_value_check
@ -102,12 +96,7 @@ RSpec.describe Form::Lettings::Subsections::PropertyInformation, type: :model do
it "has correct pages" do
expect(property_information.pages.map(&:id)).to eq(
%w[
uprn
uprn_confirmation
address_search
address_matcher
no_address_found
uprn_selection
address
property_local_authority
local_authority_rent_value_check

10
spec/models/form/sales/subsections/property_information_spec.rb

@ -55,12 +55,7 @@ RSpec.describe Form::Sales::Subsections::PropertyInformation, type: :model do
it "has correct pages" do
expect(property_information.pages.map(&:id)).to eq(
%w[
uprn
uprn_confirmation
address_search
address_matcher
no_address_found
uprn_selection
address
property_local_authority
local_authority_buyer_1_income_max_value_check
@ -90,12 +85,7 @@ RSpec.describe Form::Sales::Subsections::PropertyInformation, type: :model do
it "has correct pages" do
expect(property_information.pages.map(&:id)).to eq(
%w[
uprn
uprn_confirmation
address_search
address_matcher
no_address_found
uprn_selection
address
property_local_authority
local_authority_buyer_1_income_max_value_check

Loading…
Cancel
Save