Sha256: f5104bc90209d18fbc3476e7578d31a1da929652982fe40ce775196dff36b327
Contents?: true
Size: 641 Bytes
Versions: 11
Compression:
Stored size: 641 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" # RSpec require 'rspec/core/rake_task' RSpec::Core::RakeTask.new task :default => ['testapp:create', :spec] # Create a test Rails app in tmp/railsapp for testing the rake # tasks and overall Rails integration with Aruba. # namespace :testapp do desc 'Create a dummy rails application for testing in /tmp' task :create do FileUtils.mkdir_p('tmp/aruba') Dir.chdir('tmp') do FileUtils.rm_rf('railsapp') sh 'rails new railsapp --skip-bundle' end FileUtils.cp_r('spec/aruba/fixtures/railsapp/.', 'tmp/railsapp/') FileUtils.rm('tmp/railsapp/Gemfile') end end
Version data entries
11 entries across 11 versions & 1 rubygems