summaryrefslogtreecommitdiff
path: root/vendor/plugins/thinking-sphinx/features/handling_edits.feature
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/handling_edits.feature')
-rw-r--r--vendor/plugins/thinking-sphinx/features/handling_edits.feature76
1 files changed, 0 insertions, 76 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/handling_edits.feature b/vendor/plugins/thinking-sphinx/features/handling_edits.feature
deleted file mode 100644
index 6b14766..0000000
--- a/vendor/plugins/thinking-sphinx/features/handling_edits.feature
+++ /dev/null
@@ -1,76 +0,0 @@
1Feature: Keeping Sphinx in line with model changes when requested
2 In order to keep indexes as up to date as possible
3 Thinking Sphinx
4 Should return the expected results depending on whether delta indexes are used
5
6 Scenario: Returning instance from old data if there is no delta
7 Given Sphinx is running
8 And I am searching on alphas
9 When I search for two
10 Then I should get 1 result
11
12 When I change the name of alpha two to twelve
13 And I wait for Sphinx to catch up
14 And I search for two
15 Then I should get 1 result
16
17 Scenario: Not returing an instance from old data if there is a delta
18 Given Sphinx is running
19 And I am searching on betas
20 When I search for two
21 Then I should get 1 result
22
23 When I change the name of beta two to twelve
24 And I wait for Sphinx to catch up
25 And I search for two
26 Then I should get 0 results
27
28 Scenario: Returning instance from new data if there is a delta
29 Given Sphinx is running
30 And I am searching on betas
31 When I search for one
32 Then I should get 1 result
33
34 When I change the name of beta one to eleven
35 And I wait for Sphinx to catch up
36 And I search for one
37 Then I should get 0 results
38
39 When I search for eleven
40 Then I should get 1 result
41
42 Scenario: Returning new records if there's a delta
43 Given Sphinx is running
44 And I am searching on betas
45 When I search for fifteen
46 Then I should get 0 results
47
48 When I create a new beta named fifteen
49 And I wait for Sphinx to catch up
50 And I search for fifteen
51 Then I should get 1 result
52
53 Scenario: Avoiding delta updates if there hasn't been changes
54 Given Sphinx is running
55 And I am searching on betas
56 When I search for five
57 Then I should get 1 result
58
59 When I change the name of beta five to five
60 And I wait for Sphinx to catch up
61 And I search for five
62 Then I should get 1 result
63
64 When I search for the document id of beta five in the beta_core index
65 Then it should exist if using Rails 2.1 or newer
66 When I search for the document id of beta five in the beta_delta index
67 Then it should not exist if using Rails 2.1 or newer
68
69 Scenario: Handling edits with a delta when Sphinx isn't running
70 Given Sphinx is running
71 And I am searching on betas
72 When I stop Sphinx
73 And I change the name of beta six to sixteen
74 And I start Sphinx
75 And I search for sixteen
76 Then I should get 1 result