Sha256: 433036b9c1ab742ca268260ab3ea22057d67497f7e80416dac7a8fe891b899cf
Contents?: true
Size: 763 Bytes
Versions: 5
Compression:
Stored size: 763 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.1.0', '2.2.2', '2.3.8', '3.0.3', '3.0.9'] 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
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
auto_html-1.5.0 | Rakefile |
marcosinger-auto_html-1.3.6 | Rakefile |
auto_html-1.4.2 | Rakefile |
auto_html-1.4.1 | Rakefile |
auto_html-1.4.0 | Rakefile |