Skip to content

Commit 94148d4

Browse files
committed
Merge pull request #719 from cerebris/rails5
rails5rc1
2 parents bae544e + eb50d30 commit 94148d4

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ sudo: false
33
env:
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"
77
rvm:
88
- 2.1
99
- 2.2.4
1010
- 2.3.0
1111
matrix:
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"

test/controllers/controller_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

test/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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

0 commit comments

Comments
 (0)