Module: RspecModelValidations::Matchers

Defined in:
lib/rspec_model_validations/matchers.rb

Overview

Rspec ‘alias’ to run matchers. Include with rspec configuration method ‘include`

Defined Under Namespace

Modules: Base Classes: Invalidate, Validate

Instance Method Summary collapse

Instance Method Details

#invalidate(attribute) ⇒ Validate

‘invalidate` alias

Returns:



12
# File 'lib/rspec_model_validations/matchers.rb', line 12

def invalidate attribute; Invalidate.new attribute end

#validate(attribute) ⇒ Validate

‘validate` alias

Returns:



8
# File 'lib/rspec_model_validations/matchers.rb', line 8

def validate attribute; Validate.new attribute end