Module: Mongoid::Matchers::Validations::WithMessage

Included in:
ValidateLengthOfMatcher, ValidateUniquenessOfMatcher, ValidateWithCustomValidatorMatcher
Defined in:
lib/matchers/validations/with_message.rb

Instance Method Summary collapse

Instance Method Details

#with_message(message) ⇒ Object



5
6
7
8
# File 'lib/matchers/validations/with_message.rb', line 5

def with_message(message)
  @expected_message = message
  self
end