posts: fix exception in random:1 searches.

Fix regression in 1ad0e8688. Caused by `relation.order_values` returning
an array of Arel nodes instead of an array of strings when doing a
`random:1` search.
This commit is contained in:
evazion
2022-03-21 01:27:53 -05:00
parent f52dc9e2ad
commit defea08084
2 changed files with 6 additions and 1 deletions

View File

@@ -323,6 +323,9 @@ class PostsControllerTest < ActionDispatch::IntegrationTest
get posts_path, params: { tags: "order:random" }
assert_response :success
get posts_path(tags: "random:1")
assert_response :success
get posts_path(random: "1")
assert_redirected_to posts_path(tags: "random:20", format: :html)