File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 15
15
# specific language governing permissions and limitations
16
16
# under the License.
17
17
18
- require " bundler/gem_tasks"
18
+ require ' bundler/gem_tasks'
19
19
20
- desc " Run unit tests"
21
- task : default => 'test:unit '
22
- task : test => 'test:unit '
20
+ desc ' Run unit tests'
21
+ task default : 'test:all '
22
+ task test : 'test:all '
23
23
24
- if RUBY_VERSION < '2.3'
25
- GEMFILES = [ '3.0.gemfile' , '4.0.gemfile' , '5.0.gemfile' ]
26
- else
27
- GEMFILES = [ '4.0.gemfile' , '5.0.gemfile' , '6.0.gemfile' ]
28
- end
24
+ GEMFILES = [ '4.0.gemfile' , '5.0.gemfile' , '6.0.gemfile' ]
29
25
30
26
namespace :bundle do
31
27
desc 'Install dependencies for all the Gemfiles in /gemfiles. Optionally define env variable RAILS_VERSIONS. E.g. RAILS_VERSIONS=3.0,5.0'
47
43
48
44
require 'rake/testtask'
49
45
namespace :test do
50
-
51
46
desc 'Run all tests. Optionally define env variable RAILS_VERSIONS. E.g. RAILS_VERSIONS=3.0,5.0'
52
47
task :all , [ :rails_versions ] do |task , args |
53
48
gemfiles = ENV [ 'RAILS_VERSIONS' ] ? ENV [ 'RAILS_VERSIONS' ] . split ( ',' ) . map { |v | "#{ v } .gemfile" } : GEMFILES
You can’t perform that action at this time.
0 commit comments