NEWS in factory_bot-1.0.1.alpha vs NEWS in factory_bot-4.8.2

- old
+ new

@@ -1,5 +1,8 @@ +4.8.2 (October 20, 2017) + Rename factory_girl to factory_bot + 4.8.1 (September 28, 2017) Explicitly define `#destroyed?` within the `Stub` strategy to return `nil` instead of raising Update various dependencies Update internal test suite to use RSpec's mocking/stubbing instead of mocha @@ -18,26 +21,26 @@ Reduce warnings from redefining methods 4.6.0 (skipped) 4.5.0 (October 17, 2014) - Improve FactoryBot.lint by including exception and message in output + Improve FactoryGirl.lint by including exception and message in output Allow selective linting Use more explicit #public_send when doing attribute assignment - Improve documentation around FactoryBot.lint and initialize_with + Improve documentation around FactoryGirl.lint and initialize_with Deprecate #ignore in favor of #transient 4.4.0 (February 10, 2014) - Add FactoryBot.lint + Add FactoryGirl.lint Fix memory leak in duplicate traits Update documentation 4.3.0 (November 3, 2013) Start testing against Rails 4.0 and Ruby 2.0.0 Stop testing against Rails 3.0 and Ruby 1.9.2 Add *_pair methods to only build two objects - Raise if a method is defined with a FactoryBot block (factory or trait) + Raise if a method is defined with a FactoryGirl block (factory or trait) Allow use of Symbol#to_proc in callbacks Add global callbacks Improve GETTING_STARTED and README 4.2.0 (January 18, 2013) @@ -72,15 +75,15 @@ Allow factories with traits to be used in associations Refactor Factory to use DefinitionHierarchy to handle managing callbacks, custom constructor, and custom to_create Add memoization to speed up factories providing attribute overrides Add initial support of JRuby when running in 1.9 mode - Improve docs on what happens when including FactoryBot::Syntax::Methods + Improve docs on what happens when including FactoryGirl::Syntax::Methods 3.5.0 (June 22, 2012) Allow created_at to be set when using build_stubbed - Deprecate FactoryBot step definitions + Deprecate FactoryGirl step definitions 3.4.2 (June 19, 2012) Fix bug in traits with callbacks called implicitly in factories whose callbacks trigger multiple times @@ -124,11 +127,11 @@ 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 FactoryBot + interacting with Factory the way you would FactoryGirl 2.6.4 (March 16, 2012) Do not ignore names of transient attributes Ensure attributes set on instance are calculated uniquely @@ -142,13 +145,13 @@ 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 FactoryBot.reload in specs + Use FactoryGirl.reload in specs Clean up running named factories with a particular strategy with - FactoryBot::FactoryRunner + FactoryGirl::FactoryRunner 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 @@ -180,18 +183,18 @@ 2.4.1 (January 17, 2012) Deprecate build_stubbed and attributes_for Fix inline traits 2.4.0 (January 13, 2012) - Refactor internals of FactoryBot to use anonymous class on which attributes + Refactor internals of FactoryGirl 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 FactoryBot step + Be more agnostic about ORMs when using columns in FactoryGirl step definitions Test against Active Record 3.2.0.rc2 Update GETTING_STARTED to use Ruby syntax highlighting 2.3.2 (November 26, 2011) @@ -202,11 +205,11 @@ 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. 2.3.1 (November 23, 2011) - Remove internally-used associate method from all the FactoryBot::Proxy subclasses + Remove internally-used associate method from all the FactoryGirl::Proxy subclasses Move around requiring of files Consolidate errors into factory_bot.rb Refactor AttributeList to deal with priority only when iterating over attributes Refactor internals of some of the Proxy subclasses @@ -214,11 +217,11 @@ 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 FactoryBot::NullFactory, - FactoryBot::Definition, and FactoryBot::DeclarationList + 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