Module: ErgomentumRspec::Matchers::ActiveModel

Defined in:
lib/ergomentum_rspec/matchers/active_model.rb,
lib/ergomentum_rspec/matchers/active_model/be_valid_for.rb,
lib/ergomentum_rspec/matchers/active_model/be_invalid_for.rb

Defined Under Namespace

Classes: BeInvalidFor, BeValidFor

Instance Method Summary collapse

Instance Method Details

#be_invalid_for(value) ⇒ Object



6
7
8
# File 'lib/ergomentum_rspec/matchers/active_model/be_invalid_for.rb', line 6

def be_invalid_for(value)
  BeInvalidFor.new(value)
end

#be_valid_for(value) ⇒ Object



6
7
8
# File 'lib/ergomentum_rspec/matchers/active_model/be_valid_for.rb', line 6

def be_valid_for(value)
  BeValidFor.new(value)
end