Skip to content

Loading…

I should be able to define to_create (or skip_create) for all factories defined #341

Closed
joshuaclayton opened this Issue · 0 comments

1 participant

@joshuaclayton
thoughtbot, inc. member

Name says it all.

@joshuaclayton joshuaclayton added a commit that closed this issue
@joshuaclayton joshuaclayton Allow to_create defined for all factories
This allows users to define to_create for every factory run through
factory_girl.

    FactoryGirl.define do
      to_create {|instance| instance.persist! }
    end

If you want to override this default, set it per factory or in a trait
(and include the trait).

Closes #341
f7efc61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.