Rspec

Public
Behaviour Driven Development for Ruby
Icons/chart bar
Used 39 times
Created by
E Emanuele Bonanno

Usage

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

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

Review the code before running this template on your machine.

inject_into_file 'Gemfile', after: 'group :development, :test do' do
<<-RUBY
  gem "rspec-rails"
RUBY
end

after_bundle do
  run "spring stop"
  rails_command "generate rspec:install"
  run "rm -rf test"
  run "mkdir -p spec/support"
end
Comments

Sign up or Login to leave a comment.