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

FactoryGirl interferes with the create action when using controller inheritance. #443

Closed
col opened this issue Oct 1, 2012 · 3 comments
Closed

Comments

@col
Copy link

col commented Oct 1, 2012

There is a good description of this issue here: cucumber/cucumber-rails#224

Is this a factory_girl issue?

@bricker
Copy link

bricker commented Oct 1, 2012

I posted the solution over in cucumber-rails as well, but I'll post it here. You need to include FactoryGirl::Syntax::Methods into Cucumber's World, otherwise it just goes into Object (which, of course, any controller will inherit from).

env.rb

World(FactoryGirl::Syntax::Methods)

@col
Copy link
Author

col commented Oct 1, 2012

Thanks for the tip. That worked as expected.

@joshuaclayton
Copy link
Contributor

Awesome, thanks for following up @Bricker88; closing.

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

3 participants