class FactoryGirlLibrary::FactoryGirl::Strategy::Library

Public Instance Methods

association(runner) click to toggle source
# File lib/factory_girl_library/factory_girl/strategy/library.rb, line 5
def association runner
  runner.run(:library)
end
result(evaluation) click to toggle source
Calls superclass method
# File lib/factory_girl_library/factory_girl/strategy/library.rb, line 9
def result(evaluation)
  factory_name = ::FactoryGirl::Factory.last_run_factory

  unless FactoryGirlLibrary::Library.registered?(factory_name) 
    Thread.new{ FactoryGirlLibrary::Library.register(factory_name, super(evaluation)) }.join
  end

  FactoryGirlLibrary::Library.get(factory_name)
end