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

Factories don't generate to rspec/ when :suffix option used #84

Closed
eric-hu opened this issue Dec 10, 2012 · 1 comment
Closed

Factories don't generate to rspec/ when :suffix option used #84

eric-hu opened this issue Dec 10, 2012 · 1 comment

Comments

@eric-hu
Copy link

eric-hu commented Dec 10, 2012

My pull request (#78) introduces a bug when the :suffix option is combined with Rspec. Factories are generated in test/ instead of spec/

$ rails g model model_name
  invoke  active_record
  create    db/migrate/20121210203814_create_model_names.rb
  create    app/models/model_name.rb
  invoke    rspec
  create      spec/models/model_name_spec.rb
  invoke      factory_girl
  create        test/factories/model_names_factory.rb

I'll submit another pull request when I can track down and fix why this is happening

@joshuaclayton
Copy link
Contributor

Not sure why the previous PR didn't close this, but FGR gem v4.2.1 should have resolved this. Thanks @eric-hu!

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

Successfully merging a pull request may close this issue.

2 participants