1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Move around requires

This commit is contained in:
Joshua Clayton 2011-11-19 16:34:31 -05:00
parent 3ed2f6274a
commit 9472a14467
5 changed files with 19 additions and 16 deletions

View file

@ -1,34 +1,20 @@
require "active_support/core_ext/module/delegation" require "active_support/core_ext/module/delegation"
require 'factory_girl/proxy' 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/registry'
require 'factory_girl/null_factory' require 'factory_girl/null_factory'
require 'factory_girl/factory' require 'factory_girl/factory'
require 'factory_girl/attribute' require 'factory_girl/attribute'
require 'factory_girl/attribute/static'
require 'factory_girl/attribute/dynamic'
require 'factory_girl/attribute/association'
require 'factory_girl/attribute/sequence'
require 'factory_girl/callback' require 'factory_girl/callback'
require 'factory_girl/declaration_list' require 'factory_girl/declaration_list'
require 'factory_girl/declaration' require 'factory_girl/declaration'
require 'factory_girl/declaration/static'
require 'factory_girl/declaration/dynamic'
require 'factory_girl/declaration/association'
require 'factory_girl/declaration/implicit'
require 'factory_girl/sequence' require 'factory_girl/sequence'
require 'factory_girl/attribute_list' require 'factory_girl/attribute_list'
require 'factory_girl/trait' require 'factory_girl/trait'
require 'factory_girl/aliases' require 'factory_girl/aliases'
require 'factory_girl/definition' require 'factory_girl/definition'
require 'factory_girl/definition_proxy' require 'factory_girl/definition_proxy'
require 'factory_girl/syntax/methods' require 'factory_girl/syntax'
require 'factory_girl/syntax/default'
require 'factory_girl/syntax/vintage'
require 'factory_girl/find_definitions' require 'factory_girl/find_definitions'
require 'factory_girl/reload' require 'factory_girl/reload'
require 'factory_girl/deprecated' require 'factory_girl/deprecated'

View file

@ -1,5 +1,9 @@
module FactoryGirl require "factory_girl/attribute/static"
require "factory_girl/attribute/dynamic"
require "factory_girl/attribute/association"
require "factory_girl/attribute/sequence"
module FactoryGirl
# Raised when defining an invalid attribute: # Raised when defining an invalid attribute:
# * Defining an attribute which has a name ending in "=" # * Defining an attribute which has a name ending in "="
# * Defining an attribute with both a static and lazy value # * Defining an attribute with both a static and lazy value

View file

@ -1,3 +1,8 @@
require "factory_girl/declaration/static"
require "factory_girl/declaration/dynamic"
require "factory_girl/declaration/association"
require "factory_girl/declaration/implicit"
module FactoryGirl module FactoryGirl
class Declaration class Declaration
attr_reader :name attr_reader :name

View file

@ -1,4 +1,8 @@
require "active_support/core_ext/hash/except" require "active_support/core_ext/hash/except"
require "factory_girl/proxy/build"
require "factory_girl/proxy/create"
require "factory_girl/proxy/attributes_for"
require "factory_girl/proxy/stub"
module FactoryGirl module FactoryGirl
class Proxy #:nodoc: class Proxy #:nodoc:

View file

@ -1,3 +1,7 @@
require "factory_girl/syntax/methods"
require "factory_girl/syntax/default"
require "factory_girl/syntax/vintage"
module FactoryGirl module FactoryGirl
# Provides alternate syntaxes for factory_girl. If you don't like the default # Provides alternate syntaxes for factory_girl. If you don't like the default
# syntax for defining or using factories, look at one of the # syntax for defining or using factories, look at one of the