Browse Source

Formatting

pull/2136/head
Rachael Booth 2 years ago
parent
commit
77fccaeea7
  1. 4
      spec/models/validations/financial_validations_spec.rb

4
spec/models/validations/financial_validations_spec.rb

@ -270,7 +270,7 @@ RSpec.describe Validations::FinancialValidations do
expect(record.errors["age2"]).to be_empty expect(record.errors["age2"]).to be_empty
expect(record.errors["age3"]) expect(record.errors["age3"])
.to eq(["The household’s income of £5,000.00 weekly is too high for the number of adults. Change either the household income or the age of the tenants."]) .to eq(["The household’s income of £5,000.00 weekly is too high for the number of adults. Change either the household income or the age of the tenants."])
(record.hhmemb+1..8).each do |n| (record.hhmemb + 1..8).each do |n|
expect(record.errors["ecstat#{n}"]).to be_empty expect(record.errors["ecstat#{n}"]).to be_empty
expect(record.errors["age#{n}"]).to be_empty expect(record.errors["age#{n}"]).to be_empty
end end
@ -289,7 +289,7 @@ RSpec.describe Validations::FinancialValidations do
expect(record.errors["ecstat#{n}"]) expect(record.errors["ecstat#{n}"])
.to eq(["The household’s income of £50.00 weekly is too low given the household’s working situation"]) .to eq(["The household’s income of £50.00 weekly is too low given the household’s working situation"])
end end
((record.hhmemb+1)..8).each do |n| (record.hhmemb + 1..8).each do |n|
expect(record.errors["ecstat#{n}"]).to be_empty expect(record.errors["ecstat#{n}"]).to be_empty
end end
end end

Loading…
Cancel
Save