Permalink
Commits on Nov 28, 2011
  1. Fix bug

    - For Japanese label
    committed Nov 28, 2011
  2. Simplify AttributeList

    joshuaclayton committed Nov 28, 2011
Commits on Nov 26, 2011
  1. Bump version to 2.3.2

    joshuaclayton committed Nov 26, 2011
  2. Fix method name

    joshuaclayton committed Nov 26, 2011
Commits on Nov 25, 2011
Commits on Nov 23, 2011
  1. Bump version to 2.3.1

    joshuaclayton committed Nov 23, 2011
  2. Fix block in spec

    joshuaclayton committed Nov 23, 2011
  3. Inheritance is our friend

    joshuaclayton committed Nov 23, 2011
Commits on Nov 21, 2011
Commits on Nov 19, 2011
  1. Move around requires

    joshuaclayton committed Nov 19, 2011
Commits on Nov 18, 2011
  1. Bump version to 2.3.0

    joshuaclayton committed Nov 18, 2011
  2. Traits can be added to factories when the factory creates an instance

    This allows for traits to be used with normal factories without having
    to name every single factory that uses one (or many) traits.
    
    So, instead of creating male_admin and female_admin factories:
    
        FactoryGirl.define do
          factory :user do
            trait(:admin)  { admin true }
            trait(:male)   { gender "Male" }
            trait(:female) { gender "Female" }
    
            factory :male_admin,   :traits => [:male, :admin]
            factory :female_admin, :traits => [:admin, :female]
          end
        end
    
        FactoryGirl.create(:male_admin)
        FactoryGirl.create(:female_admin)
    
    You could just create a user with those traits assigned:
    
        FactoryGirl.create(:user, :admin, :male)
        FactoryGirl.create(:user, :admin, :female)
    
    This can be combined with attribute overrides as expected.
    
        FactoryGirl.create(:user, :admin, :male,   :name => "John Doe")
        FactoryGirl.create(:user, :admin, :female, :name => "Jane Doe")
    joshuaclayton committed Nov 18, 2011
  3. Don't cache build class

    joshuaclayton committed Nov 18, 2011
Commits on Nov 16, 2011
Commits on Nov 12, 2011
Commits on Nov 11, 2011
  1. Merge pull request #233 from thoughtbot/correct-module

    Use correct module in docs.
    jferris committed Nov 11, 2011
  2. date isn't necessary anymore.

    gabebw committed Nov 11, 2011
  3. Use Bundler gem tasks.

    gabebw committed Nov 11, 2011
Commits on Nov 9, 2011
  1. Use correct module in docs.

    gabebw committed Nov 9, 2011
Commits on Nov 4, 2011
  1. fixed typo

    ayrton committed Nov 4, 2011
Commits on Nov 2, 2011
Commits on Nov 1, 2011
Commits on Oct 31, 2011
  1. Wrap up DeclarationList

    DeclarationList knows how to generate an attribute
    list, which never really made sense outside of being generated from
    declarations. Now, the declaration list builds a list of attributes
    which is combined in Factory#attributes with attributes from traits and
    its parents.
    joshuaclayton committed Oct 30, 2011