Sha256: 71392ed52de38ae3d24f43c2f9c73200c4218ba9fc0374abf524555fabdb3a97
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 Bytes
Contents
require "bundler/gem_tasks" require 'rake/testtask' require 'evertils/test' Rake::TestTask.new do |t| t.libs << 'test' end task :seed do if ENV['TEST'].nil? Evertils::Test::Base.before end end task :cleanup do if ENV['TEST'].nil? Evertils::Test::Base.after end end # hack from # http://stackoverflow.com/questions/1689504/how-do-i-make-a-rake-task-run-after-all-other-tasks-i-e-a-rake-afterbuild-tas current_tasks = Rake.application.top_level_tasks if current_tasks.include?('test') current_tasks << :cleanup Rake.application.instance_variable_set(:@top_level_tasks, current_tasks) task :test => :seed end desc "Run tests" task :default => :test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
evertils-common-0.3.1 | Rakefile |
evertils-common-0.3.0 | Rakefile |