Sha256: 0caebe79061e9fa3d04c61ddd9e264cd2f1d24e780970836c07c0516399a7ac1
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
# encoding: UTF-8 begin require 'bundler' require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rspec/core' require 'rspec/core/rake_task' Bundler::GemHelper.install_tasks RSpec::Core::RakeTask.new(:spec) ORMS = %w(active_record) task :default => "spec:all" namespace :spec do ORMS.each do |orm| desc "Run Tests against #{orm}" task orm do sh "BUNDLE_GEMFILE='gemfiles/#{orm}.gemfile' bundle --quiet" sh "BUNDLE_GEMFILE='gemfiles/#{orm}.gemfile' bundle exec rake -t spec" end end desc "Run Tests against all ORMs" task :all do ORMS.each { |orm| Rake::Task["spec:#{orm}"].invoke } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
panoramic-0.0.7 | Rakefile |
panoramic-0.0.6 | Rakefile |