Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sep 28, 2012

  1. Phil Cohen

    Add MiniTest syntax methods to GETTING_STARTED

    phlipper authored

Sep 14, 2012

  1. Adarsh Pandit

    Update copyright years in README.md and LICENSE

    adarsh authored
  2. Joshua Clayton

    Simplify #build_hierarchy

    joshuaclayton authored

Sep 11, 2012

  1. Joshua Clayton

    Bump version to 4.1.0

    joshuaclayton authored
  2. Joshua Clayton

    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).
    
    Examples:
    
        factory :user do
          callback(:after_stub, :before_create) { do_something }
          after(:stub, :create) { do_something_else }
          before(:create, :custom) { do_a_third_thing }
        end
    joshuaclayton authored

Aug 11, 2012

  1. Erik Ostrom

    Fixed reference to "stub" build strategy.

    eostrom authored joshuaclayton committed

Aug 03, 2012

  1. Joshua Clayton

    Bump version to 4.0.0

    joshuaclayton authored

Aug 02, 2012

  1. Joshua Clayton

    Bump version to 4.0.0.rc1

    joshuaclayton authored
  2. Joshua Clayton

    Prep for FactoryGirl 4.0

  3. Joshua Clayton

    Bump version to 3.6.1

    joshuaclayton authored
  4. Joshua Clayton

    Stub update_column to raise, which will replace update_attribute in R…

    …ails 4
    joshuaclayton authored
  5. Joshua Clayton

    Update appraisal dependencies

    joshuaclayton authored
  6. Joshua Clayton

    Improve ability to define associations with traits and add documentation

    joshuaclayton authored
  7. Joshua Clayton

    Update dependency on RSpec

    joshuaclayton authored
  8. Joshua Clayton

    Update README to include JRuby information

    joshuaclayton authored

Jul 27, 2012

  1. Joshua Clayton

    Bump version to 3.6.0

  2. Joshua Clayton

    Be more explicit about what requiring FactoryGirl::Syntax::Methods does

    Closes #409
  3. αλεx π

    Adding JRuby support to FactoryGirl

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

    Add respond_to_missing? on NullObject for 1.9 compatability

  5. Joshua Clayton

    Remove unnecessary dependency on Bluecloth

Jul 25, 2012

  1. Joshua Clayton

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

    … factories with overrides

Jul 24, 2012

  1. Joshua Clayton

    Remove dependency on build_class in Evaluator

Jul 14, 2012

  1. Prem Sichanugrist

    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 authored joshuaclayton committed

Jul 12, 2012

  1. Joshua Clayton

    Add DefinitionHierarchy to handle inheritance of some definition attr…

    …ibutes
    
    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.

Jul 07, 2012

  1. Joshua Clayton

    Don't actually advocate using Faker to generate test data

Jun 29, 2012

  1. Joshua Clayton

    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'
        end
    
    Closes #395

Jun 25, 2012

  1. Joshua Clayton

    Follow pattern for raising when instantiating

  2. Joshua Clayton

    Link to blog post outlining step definition deprecation

Jun 22, 2012

  1. Joshua Clayton

    Move Timecop.return to global after

  2. Joshua Clayton

    Bump version to 3.5.0

  3. Joshua Clayton

    Allow created_at to be set when using build_stubbed

    Closes #390
  4. Joshua Clayton

    Deprecate FactoryGirl step definitions

Jun 20, 2012

  1. Joshua Clayton

    Fix date in NEWS

  2. Joshua Clayton

    Bump version to 3.4.2

  3. Joshua Clayton

    Ensure that callbacks are triggered once for implicit traits

    Closes #393
Something went wrong with that request. Please try again.