Commit 95391a32a927b910e54d94d8d93e4cb90cc51ca9
1 parent
684580b0
Exists in
relation
and in
1 other branch
Added test [skip ci]
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
test/aggs_test.rb
... | ... | @@ -29,6 +29,9 @@ class AggsTest < Minitest::Test |
29 | 29 | def test_order |
30 | 30 | agg = Product.search("Product", aggs: {color: {order: {_key: "desc"}}}).aggs["color"] |
31 | 31 | assert_equal %w(red green blue), agg["buckets"].map { |b| b["key"] } |
32 | + | |
33 | + agg = Product.search("Product", relation: true).aggs(color: {order: {_key: "desc"}}).aggs["color"] | |
34 | + assert_equal %w(red green blue), agg["buckets"].map { |b| b["key"] } | |
32 | 35 | end |
33 | 36 | |
34 | 37 | def test_field | ... | ... |