summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-28 00:15:53 +0200
committerhukl <contact@smyck.org>2009-05-01 17:14:02 +0200
commit4bd16f053847f2efe347ebda9136ef2233ee0d2c (patch)
treef4c11f89455de991c8d87726d5757b752e7129e2 /vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature
parentd3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff)
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature')
-rw-r--r--vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature56
1 files changed, 56 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature b/vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature
new file mode 100644
index 00000000..68a5bb9a
--- /dev/null
+++ b/vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature
@@ -0,0 +1,56 @@
1Feature: Keeping AR::Base.find arguments in search calls
2 To keep things as streamlined as possible
3 Thinking Sphinx
4 Should respect particular arguments to AR::Base.find calls
5
6 Scenario: Respecting the include option
7 Given Sphinx is running
8 And I am searching on posts
9 Then I should get 1 result
10
11 When I get the first comment
12 And I track queries
13 And I compare comments
14 Then I should have 1 query
15
16 When I include comments
17 Then I should get 1 result
18 When I track queries
19 And I compare comments
20 Then I should have 0 queries
21
22 Scenario: Respecting the include option without using a specific model
23 Given Sphinx is running
24 And I search for "Hello World"
25 Then I should get 1 result
26
27 When I get the first comment
28 And I track queries
29 And I compare comments
30 Then I should have 1 query
31
32 When I include comments
33 Then I should get 1 result
34 When I track queries
35 And I compare comments
36 Then I should have 0 queries
37
38 Scenario: Respecting the select option
39 Given Sphinx is running
40 And I am searching on posts
41 Then I should get 1 result
42 And I should not get an error accessing the subject
43
44 When I select only content
45 Then I should get 1 result
46 And I should get an error accessing the subject
47
48 Scenario: Respecting the select option without using a specific model
49 Given Sphinx is running
50 When I search for "Hello World"
51 Then I should get 1 result
52 And I should not get an error accessing the subject
53
54 When I select only content
55 Then I should get 1 result
56 And I should get an error accessing the subject \ No newline at end of file