File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ sudo: false
33env :
44 - " RAILS_VERSION=4.1.0"
55 - " RAILS_VERSION=4.2.6"
6- - " RAILS_VERSION=5.0.0.beta3 "
6+ - " RAILS_VERSION=5.0.0.rc1 "
77rvm :
88 - 2.1
99 - 2.2.4
1010 - 2.3.0
1111matrix :
1212 exclude :
13+ - rvm : 2.0
14+ env : " RAILS_VERSION=5.0.0.rc1"
1315 - rvm : 2.1
14- env : " RAILS_VERSION=5.0.0.beta3 "
16+ env : " RAILS_VERSION=5.0.0.rc1 "
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ def test_sorting_by_relationship_field
374374
375375 def test_desc_sorting_by_relationship_field
376376 post = create_alphabetically_first_user_and_post
377- get :index , { sort : '-author.name' }
377+ get :index , params : { sort : '-author.name' }
378378
379379 assert_response :success
380380 assert json_response [ 'data' ] . length > 10 , 'there are enough records to show sort'
@@ -424,7 +424,7 @@ def test_show_does_not_include_records_count_in_meta
424424
425425 def test_show_does_not_include_pages_count_in_meta
426426 JSONAPI . configuration . top_level_meta_include_page_count = true
427- get :show , { id : Post . first . id }
427+ get :show , params : { id : Post . first . id }
428428 assert_response :success
429429 assert_equal json_response [ 'meta' ] , nil
430430 ensure
Original file line number Diff line number Diff line change 55
66# To test on a specific rails version use this:
77# export RAILS_VERSION=4.2.6; bundle update rails; bundle exec rake test
8- # export RAILS_VERSION=5.0.0.beta3 ; bundle update rails; bundle exec rake test
8+ # export RAILS_VERSION=5.0.0.rc1 ; bundle update rails; bundle exec rake test
99
1010# We are no longer having Travis test Rails 4.0.x., but you can try it with:
1111# export RAILS_VERSION=4.0.0; bundle update rails; bundle exec rake test
You can’t perform that action at this time.
0 commit comments