How to replace fixture generator on Rails 3? -
I am trying to use factorygir instead of the default fixtures in Rail Ranger 3. I
In this way (config / application.rb)
config.generators Do it G. G.orm: active_record g.template_engine: erb g.test_framework: test_unit ,: fixture => True g.fixture_replacement "factory_girl" ,: dir = & gt; End of "examination / factories"
looks good, is not it? But it does not work ... any ideas?
It seems that there is a proper way to do it (at least now :) :) slightly different Is:
config.generators do G | G.orm: active_record g.template_engine: erb g.test_framework: test_unit ,: fixture_replacement = & gt; : Factory_girl End
Comments
Post a Comment