Sha256: f596af4191c3dfd8589054cb621315714d27dedacd7802cbcf2175fac64e0794
Contents?: true
Size: 736 Bytes
Versions: 6
Compression:
Stored size: 736 Bytes
Contents
require 'rake/testtask' desc 'Default: run tests' task :default => :test desc 'Test AutoHtml' Rake::TestTask.new(:test) do |t| t.pattern = 'test/**/*_test.rb' end desc 'Test with recent versions of Rails' task :test_with_recent do versions = ['2.3.8', '3.0.3'] versions.each do |v| puts "\n###### TESTING WITH RAILS #{v}" ENV['RAILS_VERSION'] = v Rake::Task['test'].execute end end desc 'Test with versions of Rails available on the system' task :test_with_installed do versions = `gem list rails | grep rails`.gsub("rails (", "").chop.split(', ') exclude = [] (versions-exclude).each do |v| puts "\n###### TESTING WITH RAILS #{v}" ENV['RAILS_VERSION'] = v Rake::Task['test'].execute end end
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
auto_html-1.3.7 | Rakefile |
marcosinger-auto_html-1.3.5 | Rakefile |
marcosinger-auto_html-1.3.4 | Rakefile |
auto_html-1.3.6 | Rakefile |
auto_html-1.3.5 | Rakefile |
auto_html-1.3.4 | Rakefile |