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

后端 未结 5 574
遥遥无期
遥遥无期 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:43

    I'm a new developer and I just made a rails flag (-rspec) to address OP's problem. It gets rid of Test::Unit and inserts the rails-rspec gem with a bash script. The script can be modified to help linux developers by automatically adding therubyracer gem or create custom flags and gemsets. (maybe specifically going to that gem line and deleting the comment)

    Here's the gist && I hope this helps someone out there. https://gist.github.com/MTen/8310116

提交回复
热议问题