blob: 1633249c65476945366a5d6b80a87b3b1fb8fd13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|