Commits on Sep 28, 2012
  1. @phlipper
Commits on Sep 14, 2012
  1. Update copyright years in and LICENSE

    Adarsh Pandit committed Sep 14, 2012
  2. @joshuaclayton

    Simplify #build_hierarchy

    joshuaclayton committed Sep 14, 2012
Commits on Sep 11, 2012
  1. @joshuaclayton

    Bump version to 4.1.0

    joshuaclayton committed Sep 11, 2012
  2. @joshuaclayton

    Support binding a block to multiple callbacks

    This allows for binding multiple callbacks (after_stub, before_create,
    etc.) to a single block. This is useful if you want a block to be called
    across all build strategies (since build_stubbed doesn't share any
    callbacks with build/create).
        factory :user do
          callback(:after_stub, :before_create) { do_something }
          after(:stub, :create) { do_something_else }
          before(:create, :custom) { do_a_third_thing }
    joshuaclayton committed Sep 11, 2012
Commits on Aug 11, 2012
  1. @eostrom @joshuaclayton
Commits on Aug 3, 2012
  1. @joshuaclayton

    Bump version to 4.0.0

    joshuaclayton committed Aug 3, 2012
Commits on Aug 2, 2012
  1. @joshuaclayton
  2. @joshuaclayton

    Prep for FactoryGirl 4.0

    joshuaclayton committed Jul 27, 2012
  3. @joshuaclayton

    Bump version to 3.6.1

    joshuaclayton committed Aug 2, 2012
  4. @joshuaclayton
  5. @joshuaclayton
  6. @joshuaclayton
  7. @joshuaclayton
  8. @joshuaclayton
Commits on Jul 27, 2012
  1. @joshuaclayton

    Bump version to 3.6.0

    joshuaclayton committed Jul 27, 2012
  2. @joshuaclayton
  3. @ifesdjeen @joshuaclayton

    Adding JRuby support to FactoryGirl

      JRuby are affected by inconsistent behavior of overriding
      #respond_to? that is causing an unconditional call to
      Current change does not affect MRI users in any way,
      JRuby-specific things are wrapped into the RUBY_PLATFORM
      Adding docs, modifying gemspec and travis.yml to make factory_girl to pass on Travis.
      Wire up tests
    ifesdjeen committed with joshuaclayton Jul 6, 2012
  4. @joshuaclayton
  5. @joshuaclayton
Commits on Jul 25, 2012
  1. @joshuaclayton

    Memoize the names of attributes to assign for a 33% speed increase on…

    … factories with overrides
    joshuaclayton committed Jul 25, 2012
Commits on Jul 24, 2012
  1. @joshuaclayton
Commits on Jul 14, 2012
  1. @sikachu @joshuaclayton

    Fix FactoryGirl naming convention

    So now, we'll always refer to this Gem as FactoryGirl, regardless of
    context. This commit is to make it consistence throughout the code base.
    sikachu committed with joshuaclayton Jul 13, 2012
Commits on Jul 12, 2012
  1. @joshuaclayton

    Add DefinitionHierarchy to handle inheritance of some definition attr…

    This includes #callbacks, #constructor, and #to_create. The reasoning
    behind this is that we were mimicing an inheritance chain via methods;
    now, we actually generate classes, which Factory maintains, who inherit
    from their parent's hierarchy. We build the hierarchy during compilation
    to conditionally define methods based on whether what we're dealing
    with from the definition is actually meaningful. The base class
    (DefinitionHierarchy) uses the defaults (an empty array for #callbacks
    and the global #to_create and #constructor) so once we hit the top
    level, if the definition doesn't set any overrides, we have a list of
    sensible values.
    joshuaclayton committed Jul 12, 2012
Commits on Jul 7, 2012
  1. @joshuaclayton
Commits on Jun 29, 2012
  1. @joshuaclayton

    Allow factories with traits to be used in associations

    This allows defining associations with factories using traits by slicing
    up the hash passed to association. Passing an array to `:factory` will
    use the first item in the array as the factory, with any subsequent
    symbols as traits.
    Here's an example:
        factory :post do
          association :author, factory: [:user, :admin], name: 'John Doe'
    Closes #395
    joshuaclayton committed Jun 29, 2012
Commits on Jun 25, 2012
  1. @joshuaclayton
  2. @joshuaclayton
Commits on Jun 22, 2012
  1. @joshuaclayton
  2. @joshuaclayton

    Bump version to 3.5.0

    joshuaclayton committed Jun 22, 2012
  3. @joshuaclayton
  4. @joshuaclayton
Commits on Jun 20, 2012
  1. @joshuaclayton

    Fix date in NEWS

    joshuaclayton committed Jun 20, 2012
  2. @joshuaclayton

    Bump version to 3.4.2

    joshuaclayton committed Jun 20, 2012
  3. @joshuaclayton