Commits on Mar 25, 2017
Commits on Mar 10, 2017
  1. Update thoughtbot logo

    tysongach committed on GitHub Mar 10, 2017
Commits on Dec 16, 2016
  1. Bump version to 4.8.0

    joshuaclayton committed Dec 16, 2016
  2. refer to gem itself consistently (#957)

    Everywhere else the gem is referred to as "factory_girl" instead of "FactoryGirl".
    brandondrew committed with joshuaclayton Dec 16, 2016
  3. Add use_parent_strategy option for building associations (#961)

    This change means that:
    1. The option is turned on, and
    2. A Post has a User (for example), and
    3. We build an association
    4. Then the User is built too.
    With the flag off, the User would be created, which matches current
    See: #749
    rringler committed with joshuaclayton Dec 16, 2016
  4. Updating dependencies (#958)

    * Updating activerecord-jdbcsqlite3-adapter to version 1.3.21
    * Updating sqlite3 to version 1.3.12
    megantiu committed with joshuaclayton Dec 16, 2016
Commits on Oct 7, 2016
  1. Update

    rails_helper is the file that needs to be updated not spec_helper
    Alwahsh committed with joshuaclayton Sep 17, 2016
  2. Update travis config

    bogdanvlviv committed with joshuaclayton Oct 1, 2016
  3. Add info about list methods

    This adds information about the `build_stubbed_list` and `attributes_for_list` methods as documented [here]( These methods, like many things, helped me refactor out some less aesthetic code that did the same thing in my tests.
    flanger001 committed with joshuaclayton Aug 11, 2016
Commits on Aug 26, 2016
  1. Add error message when count is missing for create_list

    Closes #889
    `create_list` was failing abruptly if the second argument was not
    count. Give a descriptive error message for this case.
    tejasbubane committed with drapergeek Aug 26, 2016
Commits on Aug 9, 2016
  1. Fix code climate badge

    Since the batch was not able to display, it was changed to a new link.
    kunitoo committed with drapergeek Aug 9, 2016
Commits on Jul 19, 2016
  1. replaced inject with each_with_object to reduce line

    `each_with_object` doesn't require the hash to be returned at the end of
    each iterations. this enables us to save a line.
    the speed difference between `inject` and `each_with_object` will most
    likely be inconsequential in this scenario.
    humzashah committed with joshuaclayton Jun 14, 2016
  2. Stub strategy disables all persistence instance methods

    Previously, instances created with the Stub strategy disabled a number of
    methods defined by ActiveRecord::Persistence, to ensure that stubbed instances
    did not read or write to the database. However, this blacklist was incomplete,
    allowing some methods (e.g. #save!) to be called on stub instances.
    This expands the blacklist to disable all methods defined by
    ActiveRecord::Persistence that are not explicitly defined on stub instances
    (currently #new_record?, #persisted?), or do not talk to the database at all
    (#becomes, #becomes!).
    The blacklist is correct as of current Rails master (the pre-release for Rails
    5.0). It also, as a result, includes a couple of methods that are not defined
    by ActiveRecord::Persistence in earlier versions of Rails, and will not
    automatically include methods added to this module in future versions of
    It would be possible to make this automatic using reflection, and instead
    using a whitelist of allowed methods:
    However, at present this test is not dependent on ActiveRecord, so I have left
    this for future work if desired.
    urbanautomaton committed with joshuaclayton Jun 29, 2016
Commits on Jul 12, 2016
  1. Reprioritize how to install and add caveat for AS 5.0

    FactoryGirl installation should occur through Bundler, so it can resolve
    dependencies correctly.
    When installing manually, include a caveat when installing on older
    Rubies on how to handle breakages in the README.
    Resolves #929, Resolves #928
    joshuaclayton committed Jul 12, 2016
Commits on Jul 5, 2016
Commits on Jul 1, 2016
  1. Appraise against Rails 5.0

    joshuaclayton committed Jul 1, 2016
Commits on May 27, 2016
  1. Remove `FactoryGirl.define`

    This removes an invocation of `FactoryGirl.define` in the traits
    section of GETTING_STARTED, to make the example code consistent with
    the rest of its context (which does not use `define`).
    jeffcole committed with joshuaclayton Mar 19, 2016
  2. Add trait transient attributes to GETTING_STARTED

    It might not otherwise be clear to readers that this is possible,
    though it represents a worthwhile use case.
    jeffcole committed with joshuaclayton Mar 19, 2016
  3. Docs: Clarify sequence usage in block vs. attr.

    The main change here is the comment
        # Same as `email { generate(:email) }`
    but to acheive such a nice short comment I had to swap the order of
    the two examples.
    [ci skip]
    jaredbeck committed with joshuaclayton Feb 9, 2016
Commits on Apr 8, 2016
Commits on Apr 7, 2016
Commits on Apr 1, 2016
  1. Bump version to 4.7.0

    joshuaclayton committed Apr 1, 2016
  2. Freeze FactoryGirl version string

    joshuaclayton committed Apr 1, 2016
  3. Bundle install with jobs

    joshuaclayton committed Apr 1, 2016