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/searching_with_find_arguments.feature | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature (limited to 'vendor/plugins/thinking-sphinx/features/searching_with_find_arguments.feature') 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 @@ +Feature: Keeping AR::Base.find arguments in search calls + To keep things as streamlined as possible + Thinking Sphinx + Should respect particular arguments to AR::Base.find calls + + Scenario: Respecting the include option + Given Sphinx is running + And I am searching on posts + Then I should get 1 result + + When I get the first comment + And I track queries + And I compare comments + Then I should have 1 query + + When I include comments + Then I should get 1 result + When I track queries + And I compare comments + Then I should have 0 queries + + Scenario: Respecting the include option without using a specific model + Given Sphinx is running + And I search for "Hello World" + Then I should get 1 result + + When I get the first comment + And I track queries + And I compare comments + Then I should have 1 query + + When I include comments + Then I should get 1 result + When I track queries + And I compare comments + Then I should have 0 queries + + Scenario: Respecting the select option + Given Sphinx is running + And I am searching on posts + Then I should get 1 result + And I should not get an error accessing the subject + + When I select only content + Then I should get 1 result + And I should get an error accessing the subject + + Scenario: Respecting the select option without using a specific model + Given Sphinx is running + When I search for "Hello World" + Then I should get 1 result + And I should not get an error accessing the subject + + When I select only content + Then I should get 1 result + And I should get an error accessing the subject \ No newline at end of file -- cgit v1.3