[rspec-users] how to stop rspec from creating helper/view specs?

David Chelimsky dchelimsky at gmail.com
Fri Sep 14 16:30:30 UTC 2012

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
> end

See "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


> 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

More information about the rspec-users mailing list