Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 76 lines (67 sloc) 3.561 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
2.3.0 (November 18, 2011)
  Registries are named, resulting in better messages when factories, traits,
    or sequences cannot be found
  Fix incorrect tests
  Internals refactoring introducing FactoryGirl::NullFactory,
    FactoryGirl::Definition, and FactoryGirl::DeclarationList
  Use ActiveSupport for Hash#except and its delegation capabilities
  Fix usage of callbacks when added via implicit traits
  Use Bundler tasks and clean up dependencies
  Fix failing spec for big letters in factory name passed as symbol
  Add ability for traits to be added dynamically when creating an instance via
    build, create, build_stubbed, or attributes_for

2.2.0 (October 14, 2011)
  Clean up RSpec suite to not use 'should'
  Use create_list in step definitions
  Syntax methods that deal with ORM interaction (attributes_for, build, build_stubbed,
    and create) now accept a block that yields the result. This results in a
    more convenient way to interact with the result than using Object.tap.
  Standardize deprecation warnings
  Update transient attribute syntax to use blocks instead of calling ignore on
    each attribute declaration
  Parents can be defined after children because factories are evaluated when
    they're used; this means breaking up factories across multiple files will
    behave as expected
  Large internal refactoring, including changing access modifiers for a
    handful of methods for a more clearly defined API

2.1.2 (September 23, 2011)
  Bugfix: Vintage syntax fixed after bug introduced in 2.1.1
  Introduce dependency on activesupport to remove code from Factory class

2.1.1 (September 23, 2011) (yanked)
  Bugfix: Parent object callbacks are run before child object callbacks
  Declarations: allow overriding/modification of individual traits in child factories
  Callbacks refactored to not be attributes
  Updating documentation for formatting and clarity (incl. new specificity for cucumber)

2.1.0 (September 02, 2011)
  Bugfix: created_at now defined for stubbed models
  Gemspec updated for use with Rails 3.1
  Factories can now be modified post-definition (useful for overriding defaults from gems/plugins)
  All factories can now be reloaded with Factory.reload
  Add :method => build to factory associations to prevent saving of associated objects
  Factories defined in {Rails.root}/factories are now loaded by default
  Various documentation updates

1.1.4 (November 28, 2008)
  Factory.build now uses Factory.create for associations of the built object
  Factory definitions are now detected in subdirectories, such as
factories/person_factory.rb (thanks to Josh Nichols)
  Factory definitions are now loaded after the environment in a Rails project
(fixes some issues with dependencies being loaded too early) (thanks to
Josh Nichols)
  Factory names ending in 's' no longer cause problems (thanks to Alex Sharp
and Josh Owens)

1.1.3 (September 12, 2008)
  Automatically pull in definitions from factories.rb, test/factories.rb, or
spec/factories.rb
1.1.2 (July 30, 2008)
  Improved error handling for invalid and undefined factories/attributes
Improved handling of strings vs symbols vs classes
Added a prettier syntax for handling associations
  Updated documentation and fixed compatibility with Rails 2.1

1.1.1 (June 23, 2008)
  The attribute "name" no longer requires using #add_attribute

1.1.0 (June 03, 2008)
Added support for dependent attributes
Fixed the attributes_for build strategy to not build associations
  Added support for sequences

1.0.0 (May 31, 2008)
  First version
Something went wrong with that request. Please try again.