Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I should be able to have access to all public attributes (as a hash) within the initialize_with block so I can pass it directly to the constructor #344

Closed
joshuaclayton opened this issue Apr 13, 2012 · 0 comments

Comments

@joshuaclayton
Copy link
Contributor

FactoryGirl.define do
  factory :user do
    ignore do
      name
      email
    end

    initialize_with { new(attributes) }
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant