class Mongoid::Matchers::Validations::ValidateConfirmationOfMatcher
Public Class Methods
new(name)
click to toggle source
Calls superclass method
Mongoid::Matchers::Validations::HaveValidationMatcher::new
# File lib/matchers/validations/confirmation_of.rb, line 7 def initialize(name) super(name, :confirmation) end
Public Instance Methods
with_message(message)
click to toggle source
# File lib/matchers/validations/confirmation_of.rb, line 11 def with_message(message) @expected_message = message self end