How to run a single RSpec test?

后端 未结 17 812

I have the following file:

/spec/controllers/groups_controller_spec.rb

What command in terminal do I use to run just that spec and in what

17条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 05:30

    I use this guard gem to auto-run my test. It execute test after create or update operations on test file.

    https://github.com/guard/guard-test

    or usually you can run using following command

    rspec spec/controllers/groups_controller_spec.rb

提交回复
热议问题