Sha256: 7fad971d0ea8551df8bf4215fe23e5492967c5b4ee64ef9e6ed21e39c50f382b

Contents?: true

Size: 617 Bytes

Versions: 11

Compression:

Stored size: 617 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'


SAMPLE_APPS = Dir.glob(File.join(File.dirname(__FILE__), 'test/support/rails_*'))

desc 'Install test dependencies.'
task :bundle do
  sample_apps = if sample_app = ENV['SAMPLE_APP']
    [ File.join(File.dirname(__FILE__), "test/support/#{sample_app}") ]
  else
    SAMPLE_APPS
  end
  sample_apps.each do |path|
    Bundler.clean_system "bundle install --quiet --gemfile #{File.join(path, 'Gemfile')}"
  end
end

desc 'Run chillout tests.'
Rake::TestTask.new(:test) do |t|
  t.libs    = %w(lib test)
  t.pattern = 'test/**/*_test.rb'
end

task :default => :test

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
chillout-0.8.9 Rakefile
chillout-0.8.5.1 Rakefile
chillout-0.8.8 Rakefile
chillout-0.8.7 Rakefile
chillout-0.8.6 Rakefile
chillout-0.8.5 Rakefile
chillout-0.8.4 Rakefile
chillout-0.8.3 Rakefile
chillout-0.8.2 Rakefile
chillout-0.8.1 Rakefile
chillout-0.8.0 Rakefile