First delete the test directory, then run the following command
rails generate rspec:install
And if you use bundler, use the following command instead
bundle exec rails generate rspec:install
It should create a spec directory in your rails root
In this directory you can find the following file among other spec_helper.rb directories
Then you can edit this file if you need
And to run the tests you have to use the following command
rspec
Or if you use bundler
bundle exec rspec
source share