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

Version Path
chrono_model-1.2.0 Rakefile
chrono_model-1.1.0 Rakefile
chrono_model-1.0.1 Rakefile
chrono_model-0.13.2 Rakefile
chrono_model-1.0.0 Rakefile
chrono_model-0.13.1 Rakefile
chrono_model-0.13.0 Rakefile
chrono_model-0.12.3 Rakefile
chrono_model-0.12.2 Rakefile
chrono_model-0.12.1 Rakefile
chrono_model-0.12.0 Rakefile