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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user