How can I tell Rails to use RSpec instead of test-unit when creating a new Rails app?

后端 未结 5 662
遥遥无期
遥遥无期 2021-01-29 20:51

I have test-unit installed and rspec installed (along with -core, -expectations, -mocks and -rails

5条回答
  •  梦谈多话
    2021-01-29 21:39

    There's no native way to do this with the rails CLI. Generate a new project without test-unit:

    rails new rails-app --skip-test

    And then follow rspec instructions to integrate it into the new Rails app.

提交回复
热议问题