S Ahmed
2012-Sep-14 16:20 UTC
[rspec-users] how to stop rspec from creating helper/view specs?
I tried adding this to my application.rb: config.generators do |g| g.view_specs false g.helper_specs false end But it didn''t stop the generator from creating view/helper specs. What am I doing wrong? Also also tried doing this the configuration section: config.view_specs = false config.helper_specs = false But it didn''t do anything. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120914/eeefd5f6/attachment.html>
David Chelimsky
2012-Sep-14 16:30 UTC
[rspec-users] how to stop rspec from creating helper/view specs?
On Fri, Sep 14, 2012 at 11:20 AM, S Ahmed <sahmed1020 at gmail.com> wrote:> I tried adding this to my application.rb: > > config.generators do |g| > g.view_specs false > g.helper_specs false > endSee "Customizing your workflow" on http://guides.rubyonrails.org/generators.html According to that, you need to something like this, but I''ve never tried it, so if it doesn''t work please consult the rails mailing list (although, do let us know whether it does). config.generators do |g| g.test_framework :rspec, :view_specs => false, :helper_specs => false end HTH, David> > > But it didn''t stop the generator from creating view/helper specs. > > What am I doing wrong? > > Also also tried doing this the configuration section: > > config.view_specs = false > config.helper_specs = false > > > But it didn''t do anything. > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users