Sha256: 3138a903e87279c98735911b65f0cc0be89a02a14330e78315a8610a727d8d88
Contents?: true
Size: 944 Bytes
Versions: 1
Compression:
Stored size: 944 Bytes
Contents
task :default => :test require 'bundler' require "bundler/gem_tasks" desc "Run unit tests." task :test do ruby "test.rb" end rails_versions = %w( 3.2 4.0 4.1 4.2 5.0 5.1 5.2 6.0 6.1 7.0 7.1 ) rails_versions.each do |version| dotless = version.delete('.') namespace :bundle do desc "Bundle with Rails #{version}.x" task :"rails#{dotless}" do ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile" sh "bundle" end end namespace :test do desc "Test with Rails #{version}.x" task :"rails#{dotless}" do ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile" ruby "test.rb" end end end namespace :test do desc "Test with all supported Rails versions" task :railsall do rails_versions.each do |version| dotless = version.delete('.') ENV['BUNDLE_GEMFILE'] = "gemfiles/rails_#{dotless}.gemfile" ruby "test.rb" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
default_value_for-3.6.0 | Rakefile |