2012-03-23 11:24:29 -04:00
|
|
|
3.0.0 (March 23, 2012)
|
|
|
|
Deprecate the vintage syntax
|
|
|
|
Remove Rails 2.x support
|
|
|
|
Remove Ruby 1.8 support
|
|
|
|
Remove deprecated features, including default_strategy, factory_name,
|
|
|
|
:method for defining default strategy, ignore on individual attributes, and
|
|
|
|
interacting with Factory the way you would FactoryGirl
|
|
|
|
|
2012-03-16 13:16:26 -04:00
|
|
|
2.6.4 (March 16, 2012)
|
|
|
|
Do not ignore names of transient attributes
|
|
|
|
Ensure attributes set on instance are calculated uniquely
|
|
|
|
|
2012-03-09 14:36:01 -05:00
|
|
|
2.6.3 (March 9, 2012)
|
|
|
|
Fix issue with traits not being present the first time a factory is accessed
|
|
|
|
Update available Cucumber step definitions to not require a trialing colon
|
|
|
|
when building a table of attributes to instantiate records with
|
|
|
|
|
2012-03-09 14:32:04 -05:00
|
|
|
2.6.2 (March 9, 2012)
|
|
|
|
Allow factories to use all their ancestors' traits
|
|
|
|
Ignore bin dir generated by bundler
|
|
|
|
Namespace ::Factory as top-level to fix vintage syntax issue with
|
|
|
|
Ruby 1.9.2-p3p18
|
|
|
|
|
|
|
|
2.6.1 (March 2, 2012)
|
|
|
|
Use FactoryGirl.reload in specs
|
|
|
|
Clean up running named factories with a particular strategy with
|
|
|
|
FactoryGirl::FactoryRunner
|
|
|
|
|
2012-02-17 15:58:45 -05:00
|
|
|
2.6.0 (February 17, 2012)
|
|
|
|
Improve documentation of has_many associations in the GETTING_STARTED
|
|
|
|
document
|
|
|
|
Deprecate :method in favor of :strategy when overriding an association's
|
|
|
|
build strategy
|
|
|
|
|
2012-02-10 17:36:37 -05:00
|
|
|
2.5.2 (February 10, 2012)
|
|
|
|
Fix step definitions to use associations defined in parent factories
|
|
|
|
Add inline trait support to (build|create)_list
|
|
|
|
Update ActiveSupport dependency to >= 2.3.9, which introduced
|
|
|
|
class_attribute
|
|
|
|
|
2012-02-03 16:58:58 -05:00
|
|
|
2.5.1 (February 3, 2012)
|
|
|
|
Fix attribute evaluation when the attribute isn't defined in the factory but
|
|
|
|
is a private method on Object
|
|
|
|
Update rubygems on Travis before running tests
|
|
|
|
Fix spec name
|
|
|
|
Update GETTING_STARTED with correct usage of build_stubbed
|
|
|
|
Update README with more info on initialize_with
|
|
|
|
Honor :parent on factory over block nesting
|
|
|
|
|
2012-01-20 19:06:30 -05:00
|
|
|
2.5.0 (January 20, 2012)
|
|
|
|
Revert 'Deprecate build_stubbed and attributes_for'
|
|
|
|
Implement initialize_with to allow overriding object instantiation
|
|
|
|
Ensure FG runs against Rails 3.2.0
|
|
|
|
|
2012-01-18 10:33:30 -05:00
|
|
|
2.4.2 (January 18, 2012)
|
|
|
|
Fix inline traits' interaction with defaults on the factory
|
|
|
|
|
2012-01-17 17:53:55 -05:00
|
|
|
2.4.1 (January 17, 2012)
|
|
|
|
Deprecate build_stubbed and attributes_for
|
|
|
|
Fix inline traits
|
|
|
|
|
2012-01-13 14:35:48 -05:00
|
|
|
2.4.0 (January 13, 2012)
|
|
|
|
Refactor internals of Factory Girl to use anonymous class on which attributes
|
|
|
|
get defined
|
|
|
|
Explicitly require Ruby 1.8.7 or higher in gemspec
|
|
|
|
Fix documentation
|
|
|
|
Add Gemnasium status to documentation
|
|
|
|
Supplying a Class to a factory that overrides to_s no longer results in
|
|
|
|
getting the wrong Class constructed
|
|
|
|
Be more agnostic about ORMs when using columns in Factory Girl step
|
|
|
|
definitions
|
|
|
|
Test against Active Record 3.2.0.rc2
|
|
|
|
Update GETTING_STARTED to use Ruby syntax highlighting
|
|
|
|
|
2011-11-26 13:10:14 -05:00
|
|
|
2.3.2 (November 26, 2011)
|
|
|
|
Move logic of where instance.save! is set to Definition
|
|
|
|
Fix method name from aliases_for? to alias_for?
|
|
|
|
Refactor internal attribute handling to use an anonymous class instead of
|
|
|
|
faking Ruby's variable resolution. This allows for more sane usage of
|
|
|
|
attributes without having to manage sorting priority because attributes
|
|
|
|
can turn themselves into procs, which are used with define_method on a
|
|
|
|
class so attributes work correctly all the time.
|
|
|
|
|
2011-11-23 18:47:25 -05:00
|
|
|
2.3.1 (November 23, 2011)
|
|
|
|
Remove internally-used associate method from all the FactoryGirl::Proxy subclasses
|
|
|
|
Move around requiring of files
|
|
|
|
Consolidate errors into factory_girl.rb
|
|
|
|
Refactor AttributeList to deal with priority only when iterating over
|
|
|
|
attributes
|
|
|
|
Refactor internals of some of the Proxy subclasses
|
|
|
|
Ensure callbacks on traits are executed in the correct order
|
|
|
|
|
2011-11-18 17:12:02 -05:00
|
|
|
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
|
|
|
|
|
2011-10-14 10:31:02 -04:00
|
|
|
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
|
|
|
|
|
2011-09-23 16:03:40 -04:00
|
|
|
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)
|
2011-09-23 15:47:24 -04:00
|
|
|
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)
|
|
|
|
|
2011-09-11 16:13:32 -04:00
|
|
|
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
|
|
|
|
|
2008-11-28 17:03:53 -05:00
|
|
|
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)
|
2011-10-21 13:40:41 -04:00
|
|
|
|
2008-09-12 15:59:58 -04:00
|
|
|
1.1.3 (September 12, 2008)
|
|
|
|
Automatically pull in definitions from factories.rb, test/factories.rb, or
|
|
|
|
spec/factories.rb
|
2008-07-30 10:10:54 -04:00
|
|
|
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
|
|
|
|
|
2008-06-23 18:23:36 -04:00
|
|
|
1.1.1 (June 23, 2008)
|
|
|
|
The attribute "name" no longer requires using #add_attribute
|
|
|
|
|
2011-11-12 05:19:04 -05:00
|
|
|
1.1.0 (June 03, 2008)
|
2008-06-23 18:23:36 -04:00
|
|
|
Added support for dependent attributes
|
|
|
|
Fixed the attributes_for build strategy to not build associations
|
|
|
|
Added support for sequences
|
|
|
|
|
2011-11-04 06:21:37 -04:00
|
|
|
1.0.0 (May 31, 2008)
|
2008-06-23 18:23:36 -04:00
|
|
|
First version
|