File tree 5 files changed +19
-2
lines changed
5 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ namespace :bundle do
35
35
sh "bundle install --gemfile #{ __current__ . join ( 'elasticsearch-model/gemfiles' ) } /3.0.gemfile"
36
36
puts '-' *80
37
37
sh "bundle install --gemfile #{ __current__ . join ( 'elasticsearch-model/gemfiles' ) } /4.0.gemfile"
38
+ puts '-' *80
39
+ sh "bundle install --gemfile #{ __current__ . join ( 'elasticsearch-model/gemfiles' ) } /5.0.gemfile"
38
40
end
39
41
40
42
desc "Remove Gemfile.lock in all subprojects"
@@ -45,6 +47,7 @@ namespace :bundle do
45
47
end
46
48
sh "rm -f #{ __current__ . join ( 'elasticsearch-model/gemfiles' ) } /3.0.gemfile.lock"
47
49
sh "rm -f #{ __current__ . join ( 'elasticsearch-model/gemfiles' ) } /4.0.gemfile.lock"
50
+ sh "rm -f #{ __current__ . join ( 'elasticsearch-model/gemfiles' ) } /5.0.gemfile.lock"
48
51
end
49
52
end
50
53
Original file line number Diff line number Diff line change 18
18
19
19
gemfiles /3.0.gemfile.lock
20
20
gemfiles /4.0.gemfile.lock
21
+ gemfiles /5.0.gemfile.lock
Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ namespace :test do
30
30
test . warning = false
31
31
end
32
32
33
- desc "Run integration tests against ActiveModel 3 and 4 "
33
+ desc "Run integration tests against ActiveModel 3, 4 and 5 "
34
34
task :integration do
35
35
sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/3.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_integration" unless defined? ( RUBY_VERSION ) && RUBY_VERSION > '2.2'
36
36
sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/4.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_integration"
37
+ sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/5.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_integration"
37
38
end
38
39
39
40
desc "Run unit and integration tests"
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
s . add_development_dependency "kaminari"
40
40
s . add_development_dependency "will_paginate"
41
41
42
- s . add_development_dependency "minitest" , "~> 4.2"
42
+ s . add_development_dependency "minitest" , ">= 4.2"
43
43
s . add_development_dependency "test-unit" if defined? ( RUBY_VERSION ) && RUBY_VERSION > '2.2'
44
44
s . add_development_dependency "shoulda-context"
45
45
s . add_development_dependency "mocha"
Original file line number Diff line number Diff line change
1
+ # Usage:
2
+ #
3
+ # $ BUNDLE_GEMFILE=./gemfiles/5.0.gemfile bundle install
4
+ # $ BUNDLE_GEMFILE=./gemfiles/5.0.gemfile bundle exec rake test:integration
5
+
6
+ source 'https://rubygems.org'
7
+
8
+ gemspec path: '../'
9
+
10
+ gem 'activemodel', '~> 5'
11
+ gem 'activerecord', '~> 5'
12
+ gem 'sqlite3'
You can’t perform that action at this time.
0 commit comments