How to make ./script/generate create RSpecs instead of ActionController::TestCases?
When I run开发者_JAVA百科 ./script/generate scaffold Whatever, it creates ActionController::TestCase tests for me, but I prefer to use RSpec. Is there any way to get it to generate some default RSpecs for my new class instead?
Use RSpec's own generators.
精彩评论