Sha256: 50f8ffdb6bb4f267e1b8ccb55f325391ab7c1ddfac838f55b586bd07ceddb5e6
Contents?: true
Size: 861 Bytes
Versions: 2
Compression:
Stored size: 861 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_wit_all_rails_versions do versions = ['2.1.2', '2.2.3', # '2.3.14', '3.0.11', '3.1.3', '3.2.1'] 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auto_html-1.5.1.1 | Rakefile |
auto_html-1.5.1 | Rakefile |