Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (25 sloc) 0.799 kb
def gem_opt
defined?(Gem) ? "-rubygems" : ""
end
# --------------------------------------------------
# Tests
# --------------------------------------------------
task(:default => "test:all")
namespace(:test) do
desc "Run all tests"
task(:all) do
tests = FileList['test/**/test_*.rb'] - FileList['test/test_helper.rb']
ruby %(#{gem_opt} -I.:lib -e"%w( #{tests.join(' ')} ).each {|file| require file }")
end
desc "Run all tests on multiple ruby versions (requires rvm)"
task(:portability) do
%w( 1.8.6 1.8.7 1.9.1 1.9.2 1.9.3 ).each do |version|
system <<-BASH
bash -c 'source ~/.rvm/scripts/rvm;
rvm #{version};
echo "--------- v#{version} ----------\n";
rake -s test:all'
BASH
end
end
end
Jump to Line
Something went wrong with that request. Please try again.