summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/deleting_instances.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/deleting_instances.feature
parentd3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff)
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/deleting_instances.feature')
-rw-r--r--vendor/plugins/thinking-sphinx/features/deleting_instances.feature52
1 files changed, 52 insertions, 0 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/deleting_instances.feature b/vendor/plugins/thinking-sphinx/features/deleting_instances.feature
new file mode 100644
index 0000000..7080a0b
--- /dev/null
+++ b/vendor/plugins/thinking-sphinx/features/deleting_instances.feature
@@ -0,0 +1,52 @@
1Feature: Keeping Sphinx in line with deleted model instances
2 In order to avoid deleted items being returned by Sphinx
3 Thinking Sphinx
4 Should keep deleted items out of search results
5
6 Scenario: Deleting instances from the core index
7 Given Sphinx is running
8 And I am searching on betas
9 When I search for three
10 Then I should get 1 result
11
12 When I destroy beta three
13 And I wait for Sphinx to catch up
14 And I search for three
15 Then I should get 0 results
16
17 Scenario: Deleting subclasses when the parent class is indexed
18 Given Sphinx is running
19 And I am searching on cats
20 When I search for moggy
21 Then I should get 1 result
22
23 When I destroy cat moggy
24 And I wait for Sphinx to catch up
25 And I search for moggy
26 Then I should get 0 results
27
28 Scenario: Deleting created instances from the delta index
29 Given Sphinx is running
30 And I am searching on betas
31 When I create a new beta named eleven
32 And I wait for Sphinx to catch up
33 And I search for eleven
34 Then I should get 1 result
35
36 When I destroy beta eleven
37 And I wait for Sphinx to catch up
38 And I search for eleven
39 Then I should get 0 results
40
41 Scenario: Deleting edited instances from the delta index
42 Given Sphinx is running
43 And I am searching on betas
44 When I change the name of beta four to fourteen
45 And I wait for Sphinx to catch up
46 And I search for fourteen
47 Then I should get 1 result
48
49 When I destroy beta fourteen
50 And I wait for Sphinx to catch up
51 And I search for fourteen
52 Then I should get 0 results