We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae544e commit 3c52abfCopy full SHA for 3c52abf
1 file changed
test/controllers/controller_test.rb
@@ -374,7 +374,7 @@ def test_sorting_by_relationship_field
374
375
def test_desc_sorting_by_relationship_field
376
post = create_alphabetically_first_user_and_post
377
- get :index, {sort: '-author.name'}
+ get :index, params: {sort: '-author.name'}
378
379
assert_response :success
380
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
424
425
def test_show_does_not_include_pages_count_in_meta
426
JSONAPI.configuration.top_level_meta_include_page_count = true
427
- get :show, { id: Post.first.id }
+ get :show, params: { id: Post.first.id }
428
429
assert_equal json_response['meta'], nil
430
ensure
0 commit comments