Module: Spec::FactoryGirl::Matchers

Included in:
Rails::Example::ModelExampleGroup
Defined in:
lib/spec/factory_girl/matchers/base.rb,
lib/spec/factory_girl/matchers/be_built_by_factory.rb,
lib/spec/factory_girl/matchers/be_created_by_factory.rb

Defined Under Namespace

Classes: Base, BeBuiltByFactory, BeCreatedByFactory

Instance Method Summary collapse

Instance Method Details

#be_built_by_factory(factory = nil) ⇒ Object



26
27
28
# File 'lib/spec/factory_girl/matchers/be_built_by_factory.rb', line 26

def be_built_by_factory(factory = nil)
  BeBuiltByFactory.new(factory)
end

#be_created_by_factory(factory = nil) ⇒ Object



31
32
33
# File 'lib/spec/factory_girl/matchers/be_created_by_factory.rb', line 31

def be_created_by_factory(factory = nil)
  BeCreatedByFactory.new(factory)
end