Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 3, 2011
  1. @joshuaclayton
Commits on Dec 2, 2011
  1. @joshuaclayton
Commits on Dec 1, 2011
  1. @joshuaclayton
  2. @joshuaclayton

    Move class creation/handling to an anonymous evaluator

    joshuaclayton authored
    This allows for Attribute#to_proc to not require a proxy to be passed to
    return a Proc. It also allows for removal of Attribute#add_to
Commits on Nov 29, 2011
  1. @joshuaclayton
Commits on Nov 28, 2011
  1. @joshuaclayton

    Simplify AttributeList

    joshuaclayton authored
Commits on Nov 26, 2011
  1. @joshuaclayton

    Bump version to 2.3.2

    joshuaclayton authored
  2. @joshuaclayton
  3. @joshuaclayton
  4. @joshuaclayton
  5. @joshuaclayton
  6. @joshuaclayton

    Fix method name

    joshuaclayton authored
Commits on Nov 25, 2011
  1. @joshuaclayton
Commits on Nov 23, 2011
  1. @joshuaclayton

    Bump version to 2.3.1

    joshuaclayton authored
  2. @joshuaclayton
  3. @joshuaclayton

    Fix block in spec

    joshuaclayton authored
  4. @joshuaclayton
  5. @joshuaclayton
  6. @joshuaclayton
Commits on Nov 21, 2011
  1. @joshuaclayton
  2. @joshuaclayton
Commits on Nov 19, 2011
  1. @joshuaclayton
  2. @joshuaclayton

    Move around requires

    joshuaclayton authored
Commits on Nov 18, 2011
  1. @joshuaclayton
  2. @joshuaclayton

    Bump version to 2.3.0

    joshuaclayton authored
  3. @joshuaclayton

    Traits can be added to factories when the factory creates an instance

    joshuaclayton authored
    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")
  4. @joshuaclayton

    Don't cache build class

    joshuaclayton authored
Commits on Nov 16, 2011
  1. @mike-burns
Commits on Nov 12, 2011
Commits on Nov 11, 2011
  1. @jferris

    Merge pull request #233 from thoughtbot/correct-module

    jferris authored
    Use correct module in docs.
  2. @gabebw

    date isn't necessary anymore.

    gabebw authored
  3. @gabebw

    Use Bundler gem tasks.

    gabebw authored
Commits on Nov 9, 2011
  1. @gabebw

    Use correct module in docs.

    gabebw authored
Commits on Nov 4, 2011
  1. @ayrton

    fixed typo

    ayrton authored
Commits on Nov 2, 2011
  1. @joshuaclayton
Something went wrong with that request. Please try again.