Module: NoBrainer::Matchers

Includes:
Associations, Validations
Defined in:
lib/nobrainer/rspec.rb,
lib/matchers/have_field.rb,
lib/matchers/validations.rb,
lib/matchers/associations.rb,
lib/matchers/have_index_for.rb,
lib/matchers/have_timestamps.rb,
lib/matchers/be_nobrainer_document.rb,
lib/matchers/validations/format_of.rb,
lib/matchers/validations/length_of.rb,
lib/matchers/validations/presence_of.rb,
lib/matchers/validations/exclusion_of.rb,
lib/matchers/validations/inclusion_of.rb,
lib/matchers/validations/acceptance_of.rb,
lib/matchers/validations/uniqueness_of.rb,
lib/matchers/validations/confirmation_of.rb,
lib/matchers/validations/numericality_of.rb

Defined Under Namespace

Modules: Associations, Validations Classes: BeNoBrainerDocument, HaveField, HaveIndexFor, HaveTimestamps

Constant Summary

Constants included from Associations

Associations::BELONGS_TO, Associations::HAS_MANY, Associations::HAS_MANY_THROUGH, Associations::HAS_ONE, Associations::HAS_ONE_THROUGH

Instance Method Summary collapse

Methods included from Validations

#validate_acceptance_of, #validate_confirmation_of, #validate_exclusion_of, #validate_format_of, #validate_inclusion_of, #validate_length_of, #validate_numericality_of, #validate_presence_of, #validate_uniqueness_of

Methods included from Associations

#belong_to_related, #have_many_related, #have_one_related

Instance Method Details

#be_nobrainer_documentObject



5
6
7
# File 'lib/matchers/be_nobrainer_document.rb', line 5

def be_nobrainer_document
  BeNoBrainerDocument.new
end

#have_field(*args) ⇒ Object Also known as: have_fields



493
494
495
# File 'lib/matchers/have_field.rb', line 493

def have_field(*args)
  HaveField.new(*args)
end

#have_index_for(*args) ⇒ Object



160
161
162
# File 'lib/matchers/have_index_for.rb', line 160

def have_index_for(*args)
  HaveIndexFor.new(*args)
end

#have_timestampsObject



5
6
7
# File 'lib/matchers/have_timestamps.rb', line 5

def have_timestamps
  HaveTimestamps.new
end