summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/facets.feature
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/facets.feature')
-rw-r--r--vendor/plugins/thinking-sphinx/features/facets.feature46
1 files changed, 46 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/facets.feature b/vendor/plugins/thinking-sphinx/features/facets.feature
new file mode 100644
index 0000000..8788ab4
--- /dev/null
+++ b/vendor/plugins/thinking-sphinx/features/facets.feature
@@ -0,0 +1,46 @@
1Feature: Search and browse models by their defined facets
2
3 Scenario: Requesting facets
4 Given Sphinx is running
5 And I am searching on developers
6 When I am requesting facet results
7 Then I should have valid facet results
8 And I should have 5 facets
9 And I should have the facet State
10 And I should have the facet Country
11 And I should have the facet Age
12 And I should have the facet City
13 And I should have the facet Tag Ids
14
15 Scenario: Requesting facet results
16 Given Sphinx is running
17 And I am searching on developers
18 When I am requesting facet results
19 And I drill down where Country is Australia
20 Then I should get 11 results
21
22 Scenario: Requesting facet results by multiple facets
23 Given Sphinx is running
24 And I am searching on developers
25 When I am requesting facet results
26 And I drill down where Country is Australia and Age is 30
27 Then I should get 4 results
28
29 Scenario: Requesting facets with classes included
30 Given Sphinx is running
31 And I am searching on developers
32 When I am requesting facet results
33 And I want classes included
34 Then I should have valid facet results
35 And I should have 6 facets
36 And I should have the facet Class
37
38 Scenario: Requesting MVA facets
39 Given Sphinx is running
40 And I am searching on developers
41 When I am requesting facet results
42 And I drill down where tag_ids includes the id of tag Australia
43 Then I should get 11 results
44 When I am requesting facet results
45 And I drill down where tag_ids includes the id of tags Melbourne or Sydney
46 Then I should get 5 results