Behaviour Driven Development for Ruby
Used 39 times
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