RSpec Captive
Add rspec-rails to your application
Used 10 times
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