diff --git a/spec/models/validations/financial_validations_spec.rb b/spec/models/validations/financial_validations_spec.rb index 5aae68a65..1a6672e08 100644 --- a/spec/models/validations/financial_validations_spec.rb +++ b/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["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."]) - (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["age#{n}"]).to be_empty end @@ -289,7 +289,7 @@ RSpec.describe Validations::FinancialValidations do expect(record.errors["ecstat#{n}"]) .to eq(["The household’s income of £50.00 weekly is too low given the household’s working situation"]) end - ((record.hhmemb+1)..8).each do |n| + (record.hhmemb + 1..8).each do |n| expect(record.errors["ecstat#{n}"]).to be_empty end end