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/step_definitions/sphinx_steps.rb | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb (limited to 'vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb') diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb new file mode 100644 index 0000000..1633249 --- /dev/null +++ b/vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb @@ -0,0 +1,27 @@ +Given "Sphinx is running" do + ThinkingSphinx::Configuration.instance.controller.should be_running +end + +When "I kill the Sphinx process" do + Process.kill(9, ThinkingSphinx.sphinx_pid.to_i) +end + +When "I wait for Sphinx to catch up" do + sleep(0.25) +end + +When "I start Sphinx" do + ThinkingSphinx::Configuration.instance.controller.start +end + +When "I stop Sphinx" do + ThinkingSphinx::Configuration.instance.controller.stop +end + +Then "Sphinx should be running" do + ThinkingSphinx.sphinx_running?.should be_true +end + +Then "Sphinx should not be running" do + ThinkingSphinx.sphinx_running?.should be_false +end -- cgit v1.3