Sha256: 8286757ab0c1d8f8ad6827d2005f0c8885fc2335bcba558f9df8680e29bef566
Contents?: true
Size: 882 Bytes
Versions: 5
Compression:
Stored size: 882 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'rake/testtask' Bundler::GemHelper.install_tasks desc 'Default: run all unit tests for both ActiveRecord & Mongoid.' task :default => :test namespace :test do Rake::TestTask.new(:units) do |t| t.libs << "test" t.test_files = Dir['test/*_test.rb'] t.verbose = true end desc 'Run all unit tests for ActiveRecord' task :activerecord do |t| ENV['SIMPLE_ENUM_TEST_ORM'] = 'active_record' Rake::Task['test:units'].execute end desc 'Run all unit tests for Mongoid' task :mongoid do |t| ENV['SIMPLE_ENUM_TEST_ORM'] = 'mongoid' Rake::Task['test:units'].execute end end task :test => [:'test:activerecord', :'test:mongoid'] # Mongodb directory "tmp/mongodb.data" desc 'Run mongodb in tmp/' task :mongodb => [:'tmp/mongodb.data'] do |t| system "mongod", "--dbpath", "tmp/mongodb.data" end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
simple_enum-1.6.9 | Rakefile |
simple_enum-1.6.8 | Rakefile |
simple_enum-1.6.7 | Rakefile |
simple_enum-1.6.5 | Rakefile |
simple_enum-1.6.4 | Rakefile |