Skip to content

Commit 3c52abf

Browse files
committed
fix tests for new rails5 format
1 parent bae544e commit 3c52abf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

0 commit comments

Comments
 (0)