tests: fix only param test.

This commit is contained in:
evazion
2020-03-20 15:41:45 -05:00
parent 8aac108e6b
commit 4d49bf053f

View File

@@ -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)