# File lib/shoulda/active_record/macros.rb, line 170
170:       def should_ensure_length_in_range(attribute, range, opts = {})
171:         short_message, long_message = get_options!([opts], 
172:                                                    :short_message,
173:                                                    :long_message)
174:         matcher = ensure_length_of(attribute).
175:           is_at_least(range.first).
176:           with_short_message(short_message).
177:           is_at_most(range.last).
178:           with_long_message(long_message)
179: 
180:         should matcher.description do
181:           assert_accepts matcher, subject
182:         end
183:       end