@ -632,7 +632,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["value"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["discount"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["discount"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["la"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["la"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["postcode"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["postcode_full"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["uprn"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
expect(record.errors["uprn"]).toinclude("The percentage discount multiplied by the purchase price is £160,000.00. This figure should not be more than £136,400 for properties in London.")
end
end
@ -641,7 +641,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).tobe_empty
expect(record.errors["value"]).tobe_empty
expect(record.errors["discount"]).tobe_empty
expect(record.errors["discount"]).tobe_empty
expect(record.errors["la"]).tobe_empty
expect(record.errors["la"]).tobe_empty
expect(record.errors["postcode"]).tobe_empty
expect(record.errors["postcode_full"]).tobe_empty
expect(record.errors["uprn"]).tobe_empty
expect(record.errors["uprn"]).tobe_empty
end
end
end
end
@ -657,7 +657,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["value"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["discount"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["discount"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["la"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["la"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["postcode"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["postcode_full"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["uprn"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
expect(record.errors["uprn"]).toinclude("The percentage discount multiplied by the purchase price is £104,000.00. This figure should not be more than £102,400 for properties outside of London.")
end
end
@ -666,7 +666,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do
expect(record.errors["value"]).tobe_empty
expect(record.errors["value"]).tobe_empty
expect(record.errors["discount"]).tobe_empty
expect(record.errors["discount"]).tobe_empty
expect(record.errors["la"]).tobe_empty
expect(record.errors["la"]).tobe_empty
expect(record.errors["postcode"]).tobe_empty
expect(record.errors["postcode_full"]).tobe_empty
expect(record.errors["uprn"]).tobe_empty
expect(record.errors["uprn"]).tobe_empty
end
end
end
end
@ -680,7 +680,7 @@ RSpec.describe Validations::Sales::SaleInformationValidations do