Sha256: 9372f6d44ab1f0e71d1076aa69a8679e6b3c17a0a15120c8200078e5bdfee816

Contents?: true

Size: 371 Bytes

Versions: 3

Compression:

Stored size: 371 Bytes

Contents

desc "Run test code."
Rake::TestTask.new(:default) do |t|
  # Rake::Task["log:clear"].invoke
  t.libs << "test"
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

namespace :test do
  
  task :empty do |t|
    ENV["TEST:EMPTY"] = "true"
    puts ENV["TEST:EMPTY"]
  end
  
  task :raise_exception do |t|
    raise "Oh No!"
  end
  
end

alias_task :test, :default

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mack-0.4.5 lib/tasks/test_tasks.rake
mack-0.4.6 lib/tasks/test_tasks.rake
mack-0.4.7 lib/tasks/test_tasks.rake