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

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

Comments

Projects
None yet
3 participants

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 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 commented Oct 1, 2012

Thanks for the tip. That worked as expected.

Owner

joshuaclayton commented Oct 22, 2012

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