I created a new Rails 3.2.x application with the -T option for no tests because I wanted to use Rspec for testing.
Now I want to revert it back to Test::Unit. How can I do that such that all of the rake tasks work, and new scaffolds are generated with Test::Unit instead of RSpec test shells?
After searching and hacking, here is what got it to work for me.
Create a file test/test_helper.rb and put the following code in it:
After that, you can generate tests using
Or you can just add unit tests under test/unit and then run them with