Permalink
Commits on Aug 5, 2011
  1. Bump version to 2.0.3

    joshuaclayton committed Aug 5, 2011
  2. Ensure static attributes are executed before dynamic ones.

    Static attributes must be executed first because dynamic attributes might
    rely on them. This is really important when using the :parent relationship.
    
    Previous code didn't work fine in situations like this one:
      Factory.define(:generic_user, :class => User) do |u|
        u.email { |user| "#{user.name}@example.com }
      end
    
      Factory.define(:flavio, :parent => :generic_user) do |u|
        u.name "flavio"
      end
    
    When building a :user object the previous code would have set the email
    attribute and then the name attribute. This results in a user object with
    an invalid email address: the 'name' attribute is yet not set while the
    'email' attribute is evaluated.
    
    Closes #159
    flavio committed with joshuaclayton Jul 19, 2011
Commits on Jul 30, 2011
  1. Simplify association syntax when defining new factory.

    Now it's possible to do:
    
    factory :post do
      author :factory => :user
    end
    szimek committed Nov 28, 2010
Commits on Jul 29, 2011
  1. Revert "Add travis config and build status link" until travis can sup…

    …port appraisal
    
    This reverts commit 2434d66.
    nickrivadeneira committed Jul 29, 2011
  2. Load definition files instead of require so re-running find_definitio…

    …ns works as expected
    
    Closes #161
    joshuaclayton committed Jul 29, 2011
Commits on Jul 28, 2011
  1. bump to 2.0.2

    nickrivadeneira committed Jul 28, 2011
  2. make sure the value is a string when calling #strip in step defs sinc…

    …e cucumber > 1.0 yields real types instead of strings on matches
    nickrivadeneira committed Jul 28, 2011
Commits on Jul 25, 2011
Commits on Jul 22, 2011
  1. Bump version to 2.0.1

    joshuaclayton committed Jul 22, 2011
  2. Bump version to 2.0.0

    joshuaclayton committed Jul 22, 2011
  3. Requiring factory definition files now works in 1.9 outside of tests

    Ruby 1.9 doesn't automatically include . in the load path; if we do a
    require to a relative path (eg a file within spec or test), 1.9 will raise a
    LoadError because spec or test isn't normally in the load path.
    joshuaclayton committed Jul 22, 2011
  4. Add dependency on aruba

    joshuaclayton committed Jul 22, 2011
  5. Ignore tmp dir

    joshuaclayton committed Jul 22, 2011
Commits on Jul 16, 2011
  1. Fix syntax highlighting

    gabebw committed Jul 16, 2011
Commits on Jul 13, 2011
  1. Added spec parent factories that verifies a child can use an attribut…

    …e set by the parent.
    aepstein committed Jul 13, 2011
Commits on Jul 8, 2011
Commits on Jul 6, 2011
Commits on Jul 5, 2011
  1. Bump to rc3

    jferris committed Jul 5, 2011
  2. Don't undefine __id__

    jferris committed Jul 5, 2011
  3. Bumped to 2.0.0.rc2

    jferris committed Jul 5, 2011
  4. More clear install message

    gmile committed Jul 5, 2011
Commits on Jul 4, 2011
Commits on Jul 1, 2011
  1. Typo fix

    gabebw committed Jul 1, 2011
  2. More docs

    joshuaclayton committed Jul 1, 2011
  3. Documentation fixes

    joshuaclayton committed Jul 1, 2011
Commits on Jun 30, 2011