How to run a single RSpec test?

后端 未结 17 814

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:21

    You can do something like this:

     rspec/spec/features/controller/spec_file_name.rb
     rspec/spec/features/controller_name.rb         #run all the specs in this controller
    

提交回复
热议问题