File tree 3 files changed +17
-8
lines changed
3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 5
5
- " RAILS_VERSION=5.0.7.2"
6
6
- " RAILS_VERSION=5.1.7"
7
7
- " RAILS_VERSION=5.2.3"
8
- # - "RAILS_VERSION=6.0.0.beta1 "
8
+ - " RAILS_VERSION=6.0.0"
9
9
# - "RAILS_VERSION=master"
10
10
rvm :
11
11
- 2.3.8
@@ -19,5 +19,9 @@ matrix:
19
19
exclude :
20
20
- rvm : 2.6.4
21
21
env : " RAILS_VERSION=4.2.11"
22
+ - rvm : 2.3.8
23
+ env : " RAILS_VERSION=6.0.0"
24
+ - rvm : 2.4.7
25
+ env : " RAILS_VERSION=6.0.0"
22
26
before_install :
23
- - gem install bundler --version 1.17.3
27
+ - gem install bundler --version 1.17.3
Original file line number Diff line number Diff line change @@ -2,22 +2,26 @@ source 'https://rubygems.org'
2
2
3
3
gemspec
4
4
5
- platforms :ruby do
6
- gem 'sqlite3' , '1.3.10'
7
- end
8
-
9
5
platforms :jruby do
10
6
gem 'activerecord-jdbcsqlite3-adapter'
11
7
end
12
8
13
9
version = ENV [ 'RAILS_VERSION' ] || 'default'
14
10
11
+ platforms :ruby do
12
+ if version . start_with? ( '4.2' , '5.0' )
13
+ gem 'sqlite3' , '~> 1.3.13'
14
+ else
15
+ gem 'sqlite3' , '~> 1.4'
16
+ end
17
+ end
18
+
15
19
case version
16
20
when 'master'
17
21
gem 'railties' , { git : 'https://github.com/rails/rails.git' }
18
22
gem 'arel' , { git : 'https://github.com/rails/arel.git' }
19
23
when 'default'
20
- gem 'railties' , '>= 5 .0'
24
+ gem 'railties' , '>= 6 .0'
21
25
else
22
26
gem 'railties' , "~> #{ version } "
23
27
end
Original file line number Diff line number Diff line change @@ -470,7 +470,8 @@ class ActionDispatch::IntegrationTest
470
470
fixtures :all
471
471
472
472
def assert_jsonapi_response ( expected_status , msg = nil )
473
- assert_equal JSONAPI ::MEDIA_TYPE , response . content_type
473
+ media_type = Rails ::VERSION ::MAJOR >= 6 ? response . media_type : response . content_type
474
+ assert_equal JSONAPI ::MEDIA_TYPE , media_type
474
475
if status != expected_status && status >= 400
475
476
pp json_response rescue nil
476
477
end
You can’t perform that action at this time.
0 commit comments