From 4d49bf053f3e69e4080bdeb18cedc6c561c6a01b Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 20 Mar 2020 15:41:45 -0500 Subject: [PATCH] tests: fix only param test. --- test/functional/application_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index eadee8f73..11bc571fc 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -208,7 +208,7 @@ class ApplicationControllerTest < ActionDispatch::IntegrationTest should "support the only parameter" do create(:post) - get posts_path, as: :json, params: { only: "id,rating score" } + get posts_path, as: :json, params: { only: "id,rating,score" } assert_response :success assert_equal(%w[id rating score].sort, response.parsed_body.first.keys.sort)