summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/searching_by_model.feature
diff options
context:
space:
mode:
authorUser <hukl@cccms.ccc.de>2011-02-10 14:23:36 +0100
committerUser <hukl@cccms.ccc.de>2011-02-10 14:23:36 +0100
commit384b187e9e067ddf2bb4d5fad0c2deaf96f69c89 (patch)
treecf743f377d3e2e28a31ae0359d95f37beba82cc3 /vendor/plugins/thinking-sphinx/features/searching_by_model.feature
parent3d0de09cf94cee6233b36a7f5ce20d5059854acc (diff)
parentcec2b1e2881db0000b2a09029154bea0fc62ade3 (diff)
Merge branch 'master' of ssh://svn.medienhaus.udk-berlin.de/usr/local/git/cccms
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/searching_by_model.feature')
-rw-r--r--vendor/plugins/thinking-sphinx/features/searching_by_model.feature140
1 files changed, 0 insertions, 140 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/searching_by_model.feature b/vendor/plugins/thinking-sphinx/features/searching_by_model.feature
deleted file mode 100644
index 2e482e4..0000000
--- a/vendor/plugins/thinking-sphinx/features/searching_by_model.feature
+++ /dev/null
@@ -1,140 +0,0 @@
1Feature: Searching on a single model
2 In order to use Thinking Sphinx's core functionality
3 A developer
4 Should be able to search on a single model
5
6 Scenario: Searching using a basic query
7 Given Sphinx is running
8 And I am searching on people
9 When I search for James
10 Then I should get 3 results
11
12 Scenario: Searching on a specific field
13 Given Sphinx is running
14 And I am searching on people
15 When I search for James on first_name
16 Then I should get 2 results
17
18 Scenario: Searching on multiple fields
19 Given Sphinx is running
20 And I am searching on people
21 When I search for James on first_name
22 And I search for Chamberlain on last_name
23 Then I should get 1 result
24
25 Scenario: Searching on association content
26 Given Sphinx is running
27 And I am searching on posts
28
29 When I search for "Waffles"
30 Then I should get 1 result
31
32 When I search for "Turtle"
33 Then I should get 1 result
34
35 Scenario: Searching with a filter
36 Given Sphinx is running
37 And I am searching on alphas
38 When I filter by 1 on value
39 Then I should get 1 result
40
41 Scenario: Searching with multiple filters
42 Given Sphinx is running
43 And I am searching on boxes
44 When I filter by 2 on width
45 And I filter by 2 on length
46 Then I should get 1 result
47
48 Scenario: Searching to filter multiple values on an MVA
49 Given Sphinx is running
50 And I am searching on boxes
51 When I filter by 11 and 12 on dimensions
52 Then I should get 2 results
53 When I clear existing filters
54 And I filter by both 11 and 12 on dimensions
55 Then I should get 1 result
56
57 Scenario: Searching on a MVA configured as ranged_query
58 Given Sphinx is running
59 And I am searching on posts
60 When I filter by 1 on comment_ids
61 Then I should get 1 result
62 When I clear existing filters
63 And I filter by both 1 and 2 on comment_ids
64 Then I should get 1 results
65 When I clear existing filters
66 And I filter by 10 on comment_ids
67 Then I should get 0 results
68
69 Scenario: Searching with ordering by attribute
70 Given Sphinx is running
71 And I am searching on alphas
72 When I order by value
73 Then I should get 10 results
74 And the value of each result should indicate order
75
76 Scenario: Searching with ordering on a sortable field
77 Given Sphinx is running
78 And I am searching on people
79 And I order by first_name
80 Then I should get 20 results
81 And the first_name of each result should indicate order
82
83 Scenario: Intepreting Sphinx Internal Identifiers
84 Given Sphinx is running
85 And I am searching on people
86 Then I should get 20 results
87 And each result id should match the corresponding sphinx internal id
88
89 Scenario: Retrieving weightings
90 Given Sphinx is running
91 And I am searching on people
92 When I search for "Ellie Ford"
93 And I set match mode to any
94 Then I can iterate by result and weighting
95
96 Scenario: Retrieving group counts
97 Given Sphinx is running
98 And I am searching on people
99 When I group results by the birthday attribute
100 Then I can iterate by result and count
101
102 Scenario: Retrieving group values
103 Given Sphinx is running
104 And I am searching on people
105 When I group results by the birthday attribute
106 Then I can iterate by result and group
107
108 Scenario: Retrieving both group values and counts
109 Given Sphinx is running
110 And I am searching on people
111 When I group results by the birthday attribute
112 Then I can iterate by result and group and count
113
114 Scenario: Searching for ids
115 Given Sphinx is running
116 And I am searching on people
117 When I search for Ellie
118 And I am searching for ids
119 Then I should have an array of integers
120
121 Scenario: Search results should match Sphinx's order
122 Given Sphinx is running
123 And I am searching on people
124 When I search for Ellie
125 And I order by "sphinx_internal_id DESC"
126 Then searching for ids should match the record ids of the normal search results
127
128 Scenario: Retrieving total result count when total is less than a page
129 Given Sphinx is running
130 And I am searching on people
131 When I search for James
132 And I am retrieving the result count
133 Then I should get a value of 3
134
135 Scenario: Retrieving total result count for more than a page
136 Given Sphinx is running
137 And I am searching on people
138 When I am retrieving the result count
139 Then I should get a value of 1000
140 \ No newline at end of file