Sha256: ff91986185916553c8f578537eba138d12f05cbdeadfcd163dc1dd7c0c2ee8b4
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 Bytes
Contents
task :default => :test require "bundler/gem_tasks" desc "Run unit tests." task :test do ruby "test.rb" end rails_versions = %w( 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-4.0.0 | Rakefile |