RSpec

Add rspec-rails to your application
Icons/chart bar
Used 2783 times
Created by
J Jason Charnes

Usage

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

rails app:template LOCATION="https://railsbytes.com/script/z0gsLX"
Template Source

Review the code before running this template on your machine.

run "spring stop"

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

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

run "rm -rf test" if yes?("Do you want to remove the /test directory?")
Comments

Sign up or Login to leave a comment.