class Shoulda::ActiveRecord::Matchers::AllowValueMatcher

def expectation

def expectation
  "errors " <<
  (@expected_message ? "to include #{@expected_message.inspect} " : "") <<
  "when #{@attribute} is set to #{@value.inspect}"
end