class Shoulda::Matchers::ActiveModel::AllowValueMatcher

def expectation

def expectation
  includes_expected_message = expected_message ? "to include #{expected_message.inspect}" : ''
  [error_source, includes_expected_message, "when #{@attribute} is set to #{@value.inspect}"].join(' ')
end