inquisitio 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/inquisitio/facets.rb +1 -1
- data/lib/inquisitio/version.rb +1 -1
- data/test/facets_test.rb +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ec9cf90b4eb054bcd0cc4a50657012bfc244aa6
|
4
|
+
data.tar.gz: ce88645dad186e3f94c2d020ad14a3cb89e3a077
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faf0ec26e69d120267f7d956aa52ac5926f21dc8d210786275cf0cff972d4653106b8510eb4c91e29c46567290b3c2eccc71155c4f86ee349a78e74787f0f4ca
|
7
|
+
data.tar.gz: 36423bc33afe9a853d20a5aa30d3352b37c00c7dacaa96de767bcf230b245c59d2791b551c9dcd3632c3059faa601db0bb892c357ed36169607d8dc7cc0da325
|
data/CHANGELOG.md
CHANGED
data/lib/inquisitio/facets.rb
CHANGED
data/lib/inquisitio/version.rb
CHANGED
data/test/facets_test.rb
CHANGED
@@ -68,5 +68,18 @@ module Inquisitio
|
|
68
68
|
assert_equal 2, facets[:rating][:buckets][1][:count]
|
69
69
|
end
|
70
70
|
|
71
|
+
def test_should_return_empty_if_no_facets_requested
|
72
|
+
body = {
|
73
|
+
'status' => {'rid' => 'u9aP4eYo8gIK0csK', 'time-ms' => 4},
|
74
|
+
'hits' => {'found' => 1, 'start' => 0, 'hit' => [{'data' => {'id' => ['20'], 'title' => ['Foobar2'], 'type' => ['Module_Dog']}}], }
|
75
|
+
}.to_json
|
76
|
+
Excon.stubs.clear
|
77
|
+
Excon.stub({}, {body: body, status: 200})
|
78
|
+
|
79
|
+
searcher = Searcher.where('star_wars')
|
80
|
+
facets = searcher.result_facets
|
81
|
+
assert_equal [], facets.fields
|
82
|
+
end
|
83
|
+
|
71
84
|
end
|
72
85
|
end
|