Reputation: 11023
When I create a rails app I usually do it like:
rails new <app> --skip-test-suite
No I have an app where I forgot to add the param --skip-test-suite
and I would want to use RSPEC
instead of the default test suite. How can I get rid of the default? Can I just remove the test
directory and what gems would I need to get rid of?
Upvotes: 2
Views: 909
Reputation: 29349
If you are using Rails 3, to totally remove TestUnit from your application, remove this line from your config/application.rb
require "rails/test_unit/railtie"
And add this to config/application.rb
config.generators do |g|
g.test_framework :rspec
end
Upvotes: 1