Sha256: 828221db90f5cd7659498e2b107a48cb35444b0ee0f15da2b56ba138688adf71

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

# RSpec
require 'rspec/core/rake_task'
spec_task = RSpec::Core::RakeTask.new
spec_task.rspec_opts = '-f doc'
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

1 entries across 1 versions & 1 rubygems

Version Path
chrono_model-1.2.1 Rakefile