two step values had been missed in previous work
in various places there were custom validations applied that duplicated the functionality of the generic min max validation that is applied to all numeric questions, in these situations sometimes the min and max on the question class was inconsistent with the limit that triggered validations
these have been corrected and made consistent
various tests were affected by this and have been amended accordingly
@ -406,7 +406,7 @@ RSpec.describe Imports::LettingsLogsImportService do
end
end
it"intercepts the relevant validation error"do
it"intercepts the relevant validation error"do
expect(logger).toreceive(:warn).with(/Removing offered with error: Enter a number between 0 and 20 for the amount of times the property has been re-let/)
expect(logger).toreceive(:warn).with(/Removing offered with error: Times previously offered since becoming available must be between 0 and 20/)