From 4bd16f053847f2efe347ebda9136ef2233ee0d2c Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 28 Apr 2009 00:15:53 +0200 Subject: added thinking_sphinx plugin for fulltext search on nodes and heads --- .../features/deleting_instances.feature | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/deleting_instances.feature (limited to 'vendor/plugins/thinking-sphinx/features/deleting_instances.feature') 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 @@ +Feature: Keeping Sphinx in line with deleted model instances + In order to avoid deleted items being returned by Sphinx + Thinking Sphinx + Should keep deleted items out of search results + + Scenario: Deleting instances from the core index + Given Sphinx is running + And I am searching on betas + When I search for three + Then I should get 1 result + + When I destroy beta three + And I wait for Sphinx to catch up + And I search for three + Then I should get 0 results + + Scenario: Deleting subclasses when the parent class is indexed + Given Sphinx is running + And I am searching on cats + When I search for moggy + Then I should get 1 result + + When I destroy cat moggy + And I wait for Sphinx to catch up + And I search for moggy + Then I should get 0 results + + Scenario: Deleting created instances from the delta index + Given Sphinx is running + And I am searching on betas + When I create a new beta named eleven + And I wait for Sphinx to catch up + And I search for eleven + Then I should get 1 result + + When I destroy beta eleven + And I wait for Sphinx to catch up + And I search for eleven + Then I should get 0 results + + Scenario: Deleting edited instances from the delta index + Given Sphinx is running + And I am searching on betas + When I change the name of beta four to fourteen + And I wait for Sphinx to catch up + And I search for fourteen + Then I should get 1 result + + When I destroy beta fourteen + And I wait for Sphinx to catch up + And I search for fourteen + Then I should get 0 results -- cgit v1.3