Commit fe35696170c89d9d06bcac1a1b7c897cb704960c
1 parent
44b15d7e
Exists in
relation
and in
1 other branch
More complete test [skip ci]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/order_test.rb
... | ... | @@ -35,7 +35,7 @@ class OrderTest < Minitest::Test |
35 | 35 | ] |
36 | 36 | expected = ["Product A", "Product B", "Product C"] |
37 | 37 | assert_order "product", expected, order: {color: :asc, store_id: :desc} |
38 | - assert_equal expected, Product.search("product", relation: true).order(color: :asc).order(store_id: :desc).map(&:name) | |
38 | + assert_equal expected, Product.search("product", relation: true).order(:color).order(store_id: :desc).map(&:name) | |
39 | 39 | end |
40 | 40 | |
41 | 41 | def test_order_unmapped_type | ... | ... |