Sha256: c4776fdff862228e16b5feea57913ba6a03a449f53cef25fb12c9d8f33c510ab

Contents?: true

Size: 1.04 KB

Versions: 17

Compression:

Stored size: 1.04 KB

Contents

include Rake::DSL

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/*_test.rb'
  test.warning = true
  test.verbose = true
  test.ruby_opts = ['-rubygems']
end

desc "Prepares the fixtures for being tested by installing dependencies"
task "test:setup" do
  Dir[File.dirname(__FILE__) + "/fixtures/{padrino_test,sinatra_test,rails2,rails3}"].each do |fixture|
    puts "\n*** Setting up for #{File.basename(fixture)} tests ***\n"
    `export BUNDLE_GEMFILE=#{fixture}/Gemfile` if ENV['TRAVIS']
    puts `cd #{fixture}; bundle install;`
  end
end

desc "Executes the fixture tests"
task "test:fixtures" do
  Dir[File.dirname(__FILE__) + "/fixtures/{padrino_test,sinatra_test,rails2,rails3}"].each do |fixture|
    puts "\n*** Running tests for #{File.basename(fixture)}... ***\n"
    puts `cd #{fixture}; bundle check; bundle exec rake test:rabl`
  end
end

task "test:full" => [:test, "test:fixtures"]

desc "Run tests for rabl"
task :default => :test

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rabl-0.6.2 Rakefile
rabl-0.6.1 Rakefile
rabl-0.6.0 Rakefile
rabl-0.5.5.j Rakefile
rabl-0.5.5.i Rakefile
rabl-0.5.5.h Rakefile
rabl-0.5.5.g Rakefile
rabl-0.5.5.f Rakefile
rabl-0.5.5.e Rakefile
rabl-0.5.5.d Rakefile
rabl-0.5.5.c Rakefile
rabl-0.5.5.b Rakefile
rabl-0.5.5.a Rakefile
rabl-0.5.4 Rakefile
rabl-0.5.3 Rakefile
rabl-0.5.1 Rakefile
rabl-0.5.0 Rakefile