class Shoulda::ActiveRecord::Matchers::AllowValueMatcher

def errors_match_string?

def errors_match_string?
  if @errors.include?(@expected_message)
    @matched_error = @expected_message
    true
  else
    false
  end
end