- Add rspec-rails in development and test group
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'sqlite3', '~> 1.4'
gem 'rspec-rails', '~> 3.9.0'
end
and bundle install
- Remove
test
folder if any and runrails generate rspec:install
to createspec
folder and it's config
Running via Spring preloader in process 95671
create .rspec
create spec
create spec/spec_helper.rb
create spec/rails_helper.rb
```