Sha256: 016b46ab8ba490f63e269a57b0172e2c449e37e7e8c69dc9878dca78f226c0f3

Contents?: true

Size: 1.32 KB

Versions: 11

Compression:

Stored size: 1.32 KB

Contents

require 'factory_girl/proxy'
require 'factory_girl/proxy/build'
require 'factory_girl/proxy/create'
require 'factory_girl/proxy/attributes_for'
require 'factory_girl/proxy/stub'
require 'factory_girl/registry'
require 'factory_girl/factory'
require 'factory_girl/attribute'
require 'factory_girl/attribute/static'
require 'factory_girl/attribute/dynamic'
require 'factory_girl/attribute/association'
require 'factory_girl/attribute/callback'
require 'factory_girl/attribute/sequence'
require 'factory_girl/attribute/implicit'
require 'factory_girl/sequence'
require 'factory_girl/aliases'
require 'factory_girl/definition_proxy'
require 'factory_girl/syntax/methods'
require 'factory_girl/syntax/default'
require 'factory_girl/syntax/vintage'
require 'factory_girl/find_definitions'
require 'factory_girl/deprecated'
require 'factory_girl/version'

if defined?(Rails) && Rails::VERSION::MAJOR == 2
  require 'factory_girl/rails2'
end

module FactoryGirl
  def self.factories
    @factories ||= Registry.new
  end

  def self.register_factory(factory)
    factories.add(factory)
  end

  def self.factory_by_name(name)
    factories.find(name)
  end

  def self.sequences
    @sequences ||= Registry.new
  end

  def self.register_sequence(sequence)
    sequences.add(sequence)
  end

  def self.sequence_by_name(name)
    sequences.find(name)
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
factory_girl-2.0.3 lib/factory_girl.rb
factory_girl-2.0.2 lib/factory_girl.rb
factory_girl-2.0.1 lib/factory_girl.rb
factory_girl-2.0.0.rc4 lib/factory_girl.rb
factory_girl-2.0.0.rc3 lib/factory_girl.rb
factory_girl-2.0.0.rc2 lib/factory_girl.rb
factory_girl-2.0.0.rc1 lib/factory_girl.rb
factory_girl-2.0.0.beta5 lib/factory_girl.rb
factory_girl-2.0.0.beta4 lib/factory_girl.rb
factory_girl-2.0.0.beta3 lib/factory_girl.rb
factory_girl_kibiz0r-2.0.0.beta3 lib/factory_girl.rb