Don't generate test automatically in Rails

ruby-on-rails, unit-testing

Solution

Just add the following to `config/application.rb` (within the Application class):

config.generators.test_framework false

Problem

I'm using rspec with Rails 4 and when creating controllers, for example, I always have to pass the "--no-test-framework" parameter. Is there a way to not generate these tests by default without needing to explicitly specify it (I often forget and then need to manually delete the generated tests). Thank you!

Original source

Related problems