diff options
| author | hukl <contact@smyck.org> | 2009-04-28 00:15:53 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-05-01 17:14:02 +0200 |
| commit | 4bd16f053847f2efe347ebda9136ef2233ee0d2c (patch) | |
| tree | f4c11f89455de991c8d87726d5757b752e7129e2 /vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb | |
| parent | d3a9b46ba5c863a0ff377dcffae9a494fe476e02 (diff) | |
added thinking_sphinx plugin for fulltext search on nodes and heads
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb')
| -rw-r--r-- | vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb | 27 |
1 files changed, 27 insertions, 0 deletions
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 @@ | |||
| 1 | Given "Sphinx is running" do | ||
| 2 | ThinkingSphinx::Configuration.instance.controller.should be_running | ||
| 3 | end | ||
| 4 | |||
| 5 | When "I kill the Sphinx process" do | ||
| 6 | Process.kill(9, ThinkingSphinx.sphinx_pid.to_i) | ||
| 7 | end | ||
| 8 | |||
| 9 | When "I wait for Sphinx to catch up" do | ||
| 10 | sleep(0.25) | ||
| 11 | end | ||
| 12 | |||
| 13 | When "I start Sphinx" do | ||
| 14 | ThinkingSphinx::Configuration.instance.controller.start | ||
| 15 | end | ||
| 16 | |||
| 17 | When "I stop Sphinx" do | ||
| 18 | ThinkingSphinx::Configuration.instance.controller.stop | ||
| 19 | end | ||
| 20 | |||
| 21 | Then "Sphinx should be running" do | ||
| 22 | ThinkingSphinx.sphinx_running?.should be_true | ||
| 23 | end | ||
| 24 | |||
| 25 | Then "Sphinx should not be running" do | ||
| 26 | ThinkingSphinx.sphinx_running?.should be_false | ||
| 27 | end | ||
