# File lib/shoulda/active_record/macros.rb, line 134 134: def should_not_allow_values_for(attribute, *bad_values) 135: message = get_options!(bad_values, :message) 136: bad_values.each do |value| 137: matcher = allow_value(value).for(attribute).with_message(message) 138: should "not #{matcher.description}" do 139: assert_rejects matcher, subject 140: end 141: end 142: end