add Rspec in Rails

Adding Rspec in Rails and removing Test from project Directory
Icons/chart bar
Used 7 times
Created by
A Aniket Dangat


Run this command in your Rails app directory in the terminal:

rails app:template LOCATION=""
Template Source

Review the code before running this template on your machine.

run "spring stop"

gem_group :development, :test do
  gem "rspec-rails"

run "bundle install"
rails_command "generate rspec:install"

run "rm test" if Y?("Do you want to remove the /test directory?")

Sign up or Login to leave a comment.