Sha256: dbbf4e3469a996e40f4fb7ba76f6c4c48233750570afe82c714e63d1c9f4a602
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 Bytes
Contents
task :default => :test 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 ) 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.3.0 | Rakefile |