# File lib/shoulda/active_record/macros.rb, line 172 172: def should_ensure_length_in_range(attribute, range, opts = {}) 173: ::ActiveSupport::Deprecation.warn("use: should ensure_length_of.is_at_least.is_at_most") 174: short_message, long_message = get_options!([opts], 175: :short_message, 176: :long_message) 177: should ensure_length_of(attribute). 178: is_at_least(range.first). 179: with_short_message(short_message). 180: is_at_most(range.last). 181: with_long_message(long_message) 182: end