RSpec Captive

Add rspec-rails to your application
Icons/chart bar
Used 5 times
Created by
G Guillaume Imary

Usage

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

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

Review the code before running this template on your machine.

if yes?('Voulez-vous installer Rspec-rails?')
  gem_group :development, :test do
  	gem 'rspec-rails', '~> 4.0.1'
  end

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

Sign up or Login to leave a comment.