Sha256: 39389fc96495d156da95afa7e9ff70a37478abb4f6d7aa79d4f8b2d414b9e858
Contents?: true
Size: 885 Bytes
Versions: 1
Compression:
Stored size: 885 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 6.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.4.0 | Rakefile |