desc 'run tests'
task :test do
  # This should work in my opinion, but it only runs the last loaded test.
  #sh 'ruby -Ilib -rminitest/autorun test/*_test.rb'
  require 'minitest/unit'
  $:.unshift("./lib")
  Dir['test/*_test.rb'].each {|t| load t}
  MiniTest::Unit.autorun
end

desc 'build the gem'
task :gem do
  sh 'gem build accessible_for.gemspec'
end
