diff options
| author | hukl <contact@smyck.org> | 2011-02-10 14:19:00 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2011-02-10 14:19:00 +0100 |
| commit | 7379daad1c73bd3610ed296436250b417ac3673d (patch) | |
| tree | 04f722efc678de9d3aa5bf8f1c96e3be33b18bc4 /vendor/plugins/thinking-sphinx/features/step_definitions | |
| parent | 91633ac4419d839661e35ae8f2efe5c9089cfb67 (diff) | |
removed thinking_sphinx plugin and replaced it with gem.
also tuned dependencies
Diffstat (limited to 'vendor/plugins/thinking-sphinx/features/step_definitions')
12 files changed, 0 insertions, 416 deletions
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/alpha_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/alpha_steps.rb deleted file mode 100644 index 987b10b..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/alpha_steps.rb +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | When /^I change the name of alpha (\w+) to (\w+)$/ do |current, replacement| | ||
| 2 | Alpha.find_by_name(current).update_attributes(:name => replacement) | ||
| 3 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb deleted file mode 100644 index 2d566a1..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/beta_steps.rb +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | When /^I destroy beta (\w+)$/ do |name| | ||
| 2 | Beta.find_by_name(name).destroy | ||
| 3 | end | ||
| 4 | |||
| 5 | When /^I create a new beta named (\w+)$/ do |name| | ||
| 6 | Beta.create(:name => name) | ||
| 7 | end | ||
| 8 | |||
| 9 | When /^I change the name of beta (\w+) to (\w+)$/ do |current, replacement| | ||
| 10 | Beta.find_by_name(current).update_attributes(:name => replacement) | ||
| 11 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/cat_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/cat_steps.rb deleted file mode 100644 index 82b8b7f..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/cat_steps.rb +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | When /^I destroy cat (\w+)$/ do |name| | ||
| 2 | Cat.find_by_name(name).destroy | ||
| 3 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/common_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/common_steps.rb deleted file mode 100644 index de45a20..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/common_steps.rb +++ /dev/null | |||
| @@ -1,154 +0,0 @@ | |||
| 1 | Before do | ||
| 2 | $queries_executed = [] | ||
| 3 | ThinkingSphinx::Deltas::Job.cancel_thinking_sphinx_jobs | ||
| 4 | |||
| 5 | @model = nil | ||
| 6 | @method = :search | ||
| 7 | @query = "" | ||
| 8 | @conditions = {} | ||
| 9 | @with = {} | ||
| 10 | @without = {} | ||
| 11 | @with_all = {} | ||
| 12 | @options = {} | ||
| 13 | end | ||
| 14 | |||
| 15 | Given /^I am searching on (.+)$/ do |model| | ||
| 16 | @model = model.gsub(/\s/, '_').singularize.camelize.constantize | ||
| 17 | end | ||
| 18 | |||
| 19 | When /^I am searching for ids$/ do | ||
| 20 | @results = nil | ||
| 21 | @method = :search_for_ids | ||
| 22 | end | ||
| 23 | |||
| 24 | When /^I am retrieving the result count$/ do | ||
| 25 | @result = nil | ||
| 26 | @method = @model ? :search_count : :count | ||
| 27 | end | ||
| 28 | |||
| 29 | When /^I search for (\w+)$/ do |query| | ||
| 30 | @results = nil | ||
| 31 | @query = query | ||
| 32 | end | ||
| 33 | |||
| 34 | When /^I search for "([^\"]+)"$/ do |query| | ||
| 35 | @results = nil | ||
| 36 | @query = query | ||
| 37 | end | ||
| 38 | |||
| 39 | When /^I search for (\w+) on (\w+)$/ do |query, field| | ||
| 40 | @results = nil | ||
| 41 | @conditions[field.to_sym] = query | ||
| 42 | end | ||
| 43 | |||
| 44 | When /^I clear existing filters$/ do | ||
| 45 | @with = {} | ||
| 46 | @without = {} | ||
| 47 | @with_all = {} | ||
| 48 | end | ||
| 49 | |||
| 50 | When /^I filter by (\w+) on (\w+)$/ do |filter, attribute| | ||
| 51 | @results = nil | ||
| 52 | @with[attribute.to_sym] = filter.to_i | ||
| 53 | end | ||
| 54 | |||
| 55 | When /^I filter by (\d+) and (\d+) on (\w+)$/ do |value_one, value_two, attribute| | ||
| 56 | @results = nil | ||
| 57 | @with[attribute.to_sym] = [value_one.to_i, value_two.to_i] | ||
| 58 | end | ||
| 59 | |||
| 60 | When /^I filter by both (\d+) and (\d+) on (\w+)$/ do |value_one, value_two, attribute| | ||
| 61 | @results = nil | ||
| 62 | @with_all[attribute.to_sym] = [value_one.to_i, value_two.to_i] | ||
| 63 | end | ||
| 64 | |||
| 65 | When /^I filter between ([\d\.]+) and ([\d\.]+) on (\w+)$/ do |first, last, attribute| | ||
| 66 | @results = nil | ||
| 67 | if first[/\./].nil? && last[/\./].nil? | ||
| 68 | @with[attribute.to_sym] = first.to_i..last.to_i | ||
| 69 | else | ||
| 70 | @with[attribute.to_sym] = first.to_f..last.to_f | ||
| 71 | end | ||
| 72 | end | ||
| 73 | |||
| 74 | When /^I filter between (\d+) and (\d+) days ago on (\w+)$/ do |last, first, attribute| | ||
| 75 | @results = nil | ||
| 76 | @with[attribute.to_sym] = first.to_i.days.ago..last.to_i.days.ago | ||
| 77 | end | ||
| 78 | |||
| 79 | When /^I order by (\w+)$/ do |attribute| | ||
| 80 | @results = nil | ||
| 81 | @options[:order] = attribute.to_sym | ||
| 82 | end | ||
| 83 | |||
| 84 | When /^I order by "([^\"]+)"$/ do |str| | ||
| 85 | @results = nil | ||
| 86 | @options[:order] = str | ||
| 87 | end | ||
| 88 | |||
| 89 | When /^I group results by the (\w+) attribute$/ do |attribute| | ||
| 90 | @results = nil | ||
| 91 | @options[:group_function] = :attr | ||
| 92 | @options[:group_by] = attribute | ||
| 93 | end | ||
| 94 | |||
| 95 | When /^I set match mode to (\w+)$/ do |match_mode| | ||
| 96 | @results = nil | ||
| 97 | @options[:match_mode] = match_mode.to_sym | ||
| 98 | end | ||
| 99 | |||
| 100 | When /^I set per page to (\d+)$/ do |per_page| | ||
| 101 | @results = nil | ||
| 102 | @options[:per_page] = per_page.to_i | ||
| 103 | end | ||
| 104 | |||
| 105 | When /^I set retry stale to (\w+)$/ do |retry_stale| | ||
| 106 | @results = nil | ||
| 107 | @options[:retry_stale] = case retry_stale | ||
| 108 | when "true" then true | ||
| 109 | when "false" then false | ||
| 110 | else retry_stale.to_i | ||
| 111 | end | ||
| 112 | end | ||
| 113 | |||
| 114 | Then /^the (\w+) of each result should indicate order$/ do |attribute| | ||
| 115 | results.inject(nil) do |prev, current| | ||
| 116 | unless prev.nil? | ||
| 117 | current.send(attribute.to_sym).should >= prev.send(attribute.to_sym) | ||
| 118 | end | ||
| 119 | |||
| 120 | current | ||
| 121 | end | ||
| 122 | end | ||
| 123 | |||
| 124 | Then /^I can iterate by result and (\w+)$/ do |attribute| | ||
| 125 | iteration = lambda { |result, attr_value| | ||
| 126 | result.should be_kind_of(@model) | ||
| 127 | unless attribute == "group" && attr_value.nil? | ||
| 128 | attr_value.should be_kind_of(Integer) | ||
| 129 | end | ||
| 130 | } | ||
| 131 | |||
| 132 | results.send("each_with_#{attribute}", &iteration) | ||
| 133 | end | ||
| 134 | |||
| 135 | Then /^I should get (\d+) results?$/ do |count| | ||
| 136 | results.length.should == count.to_i | ||
| 137 | end | ||
| 138 | |||
| 139 | Then /^I should not get (\d+) results?$/ do |count| | ||
| 140 | results.length.should_not == count.to_i | ||
| 141 | end | ||
| 142 | |||
| 143 | def results | ||
| 144 | @results ||= (@model || ThinkingSphinx::Search).send( | ||
| 145 | @method, | ||
| 146 | @query, | ||
| 147 | @options.merge( | ||
| 148 | :conditions => @conditions, | ||
| 149 | :with => @with, | ||
| 150 | :without => @without, | ||
| 151 | :with_all => @with_all | ||
| 152 | ) | ||
| 153 | ) | ||
| 154 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/datetime_delta_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/datetime_delta_steps.rb deleted file mode 100644 index b1d87fe..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/datetime_delta_steps.rb +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | When /^I index the theta datetime delta$/ do | ||
| 2 | Theta.sphinx_indexes.first.delta_object.delayed_index(Theta) | ||
| 3 | end | ||
| 4 | |||
| 5 | When /^I change the name of theta (\w+) to (\w+)$/ do |current, replacement| | ||
| 6 | Theta.find_by_name(current).update_attributes(:name => replacement) | ||
| 7 | end | ||
| 8 | |||
| 9 | When /^I create a new theta named (\w+)$/ do |name| | ||
| 10 | Theta.create(:name => name) | ||
| 11 | end | ||
| 12 | |||
| 13 | When /^I delete the theta named (\w+)$/ do |name| | ||
| 14 | Theta.find_by_name(name).destroy | ||
| 15 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/delayed_delta_indexing_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/delayed_delta_indexing_steps.rb deleted file mode 100644 index dc30ee5..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/delayed_delta_indexing_steps.rb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | When /^I run the delayed jobs$/ do | ||
| 2 | Delayed::Job.work_off.inspect | ||
| 3 | end | ||
| 4 | |||
| 5 | When /^I change the name of delayed beta (\w+) to (\w+)$/ do |current, replacement| | ||
| 6 | DelayedBeta.find_by_name(current).update_attributes(:name => replacement) | ||
| 7 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/extensible_delta_indexing_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/extensible_delta_indexing_steps.rb deleted file mode 100644 index 472e112..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/extensible_delta_indexing_steps.rb +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | When /I change the name of extensible beta (\w+) to (\w+)$/ do |current, replacement| | ||
| 2 | ExtensibleBeta.find_by_name(current).update_attributes(:name => replacement) | ||
| 3 | end | ||
| 4 | |||
| 5 | Then /^the generic delta handler should handle the delta indexing$/ do | ||
| 6 | ExtensibleBeta.find(:first, :conditions => {:changed_by_generic => true}).should_not be_nil | ||
| 7 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/facet_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/facet_steps.rb deleted file mode 100644 index b788529..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/facet_steps.rb +++ /dev/null | |||
| @@ -1,72 +0,0 @@ | |||
| 1 | When "I am requesting facet results$" do | ||
| 2 | @results = nil | ||
| 3 | @method = :facets | ||
| 4 | end | ||
| 5 | |||
| 6 | When "I want classes included" do | ||
| 7 | @options[:class_facet] = true | ||
| 8 | end | ||
| 9 | |||
| 10 | When "I don't want classes included" do | ||
| 11 | @options[:class_facet] = false | ||
| 12 | end | ||
| 13 | |||
| 14 | When "I want all possible attributes" do | ||
| 15 | @options[:all_attributes] = true | ||
| 16 | end | ||
| 17 | |||
| 18 | When /^I drill down where (\w+) is (\w+)$/ do |facet, value| | ||
| 19 | @results = results.for(facet.downcase.to_sym => value) | ||
| 20 | end | ||
| 21 | |||
| 22 | When /^I drill down where (\w+) is (\w+) and (\w+) is (\w+)$/ do |facet_one, value_one, facet_two, value_two| | ||
| 23 | value_one = value_one.to_i unless value_one[/^\d+$/].nil? | ||
| 24 | value_two = value_two.to_i unless value_two[/^\d+$/].nil? | ||
| 25 | |||
| 26 | @results = results.for( | ||
| 27 | facet_one.downcase.to_sym => value_one, | ||
| 28 | facet_two.downcase.to_sym => value_two | ||
| 29 | ) | ||
| 30 | end | ||
| 31 | |||
| 32 | When /^I drill down where ([\w_]+) includes the id of tag (\w+)$/ do |facet, text| | ||
| 33 | tag = Tag.find_by_text(text) | ||
| 34 | @results = results.for(facet.downcase.to_sym => tag.id) | ||
| 35 | end | ||
| 36 | |||
| 37 | When /^I drill down where ([\w_]+) includes the id of tags (\w+) or (\w+)$/ do |facet, text_one, text_two| | ||
| 38 | tag_one = Tag.find_by_text(text_one) | ||
| 39 | tag_two = Tag.find_by_text(text_two) | ||
| 40 | @results = results.for(facet.downcase.to_sym => [tag_one.id, tag_two.id]) | ||
| 41 | end | ||
| 42 | |||
| 43 | Then "I should have valid facet results" do | ||
| 44 | results.should be_kind_of(Hash) | ||
| 45 | results.values.each { |value| value.should be_kind_of(Hash) } | ||
| 46 | end | ||
| 47 | |||
| 48 | Then /^I should have (\d+) facets?$/ do |count| | ||
| 49 | results.keys.length.should == count.to_i | ||
| 50 | end | ||
| 51 | |||
| 52 | Then /^I should have the facet ([\w_\s]+)$/ do |name| | ||
| 53 | results[facet_name(name)].should be_kind_of(Hash) | ||
| 54 | end | ||
| 55 | |||
| 56 | Then /^I should not have the facet ([\w_\s]+)$/ do |name| | ||
| 57 | results.keys.should_not include(facet_name(name)) | ||
| 58 | end | ||
| 59 | |||
| 60 | Then /^the ([\w_\s]+) facet should have a "([\w\s_]+)" key with (\d+) hits$/ do |name, key, hit_count| | ||
| 61 | facet_name = facet_name name | ||
| 62 | results[facet_name].keys.should include(key) | ||
| 63 | results[facet_name][key].should eql(hit_count.to_i) | ||
| 64 | end | ||
| 65 | |||
| 66 | Then /^the ([\w_\s]+) facet should have a "(\w+)" key$/ do |name, key| | ||
| 67 | results[facet_name(name)].keys.should include(key) | ||
| 68 | end | ||
| 69 | |||
| 70 | def facet_name(string) | ||
| 71 | string.gsub(/\s/, '').underscore.to_sym | ||
| 72 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/find_arguments_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/find_arguments_steps.rb deleted file mode 100644 index 65f889c..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/find_arguments_steps.rb +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | When "I include comments" do | ||
| 2 | @results = nil | ||
| 3 | @options[:include] = :comments | ||
| 4 | end | ||
| 5 | |||
| 6 | When /^I get the first comment$/ do | ||
| 7 | @comment = Comment.find(:first) | ||
| 8 | end | ||
| 9 | |||
| 10 | When /^I track queries$/ do | ||
| 11 | $queries_executed = [] | ||
| 12 | end | ||
| 13 | |||
| 14 | When /^I compare comments$/ do | ||
| 15 | results.first.comments.first.should == @comment | ||
| 16 | end | ||
| 17 | |||
| 18 | When /^I select only content$/ do | ||
| 19 | @results = nil | ||
| 20 | @options[:select] = "id, content" | ||
| 21 | end | ||
| 22 | |||
| 23 | Then /^I should have (\d+) quer[yies]+$/ do |count| | ||
| 24 | $queries_executed.length.should == count.to_i | ||
| 25 | end | ||
| 26 | |||
| 27 | Then /^I should not get an error accessing the subject$/ do | ||
| 28 | lambda { results.first.subject }.should_not raise_error | ||
| 29 | end | ||
| 30 | |||
| 31 | Then /^I should get an error accessing the subject$/ do | ||
| 32 | error_class = NoMethodError | ||
| 33 | error_class = ActiveRecord::MissingAttributeError if ActiveRecord.constants.include?("MissingAttributeError") | ||
| 34 | |||
| 35 | lambda { results.first.subject }.should raise_error(error_class) | ||
| 36 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb deleted file mode 100644 index c4fbe20..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/gamma_steps.rb +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | When /^I destroy gamma (\w+) without callbacks$/ do |name| | ||
| 2 | @results = nil | ||
| 3 | gamma = Gamma.find_by_name(name) | ||
| 4 | Gamma.delete(gamma.id) if gamma | ||
| 5 | end | ||
| 6 | |||
| 7 | Then "I should get a single result of nil" do | ||
| 8 | results.should == [nil] | ||
| 9 | end | ||
| 10 | |||
| 11 | Then /^I should get a single gamma result with a name of (\w+)$/ do |name| | ||
| 12 | results.length.should == 1 | ||
| 13 | results.first.should be_kind_of(Gamma) | ||
| 14 | results.first.name.should == name | ||
| 15 | end | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/search_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/search_steps.rb deleted file mode 100644 index 8c64dd7..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/search_steps.rb +++ /dev/null | |||
| @@ -1,66 +0,0 @@ | |||
| 1 | When /^I search for the specific id of (\d+) in the (\w+) index$/ do |id, index| | ||
| 2 | @id = id.to_i | ||
| 3 | @index = index | ||
| 4 | end | ||
| 5 | |||
| 6 | When /^I search for the document id of (\w+) (\w+) in the (\w+) index$/ do |model, name, index| | ||
| 7 | model = model.gsub(/\s/, '_').camelize.constantize | ||
| 8 | @id = model.find_by_name(name).sphinx_document_id | ||
| 9 | @index = index | ||
| 10 | end | ||
| 11 | |||
| 12 | Then "it should exist" do | ||
| 13 | ThinkingSphinx::Search.search_for_id(@id, @index).should == true | ||
| 14 | end | ||
| 15 | |||
| 16 | Then "it should not exist" do | ||
| 17 | ThinkingSphinx::Search.search_for_id(@id, @index).should == false | ||
| 18 | end | ||
| 19 | |||
| 20 | Then "it should exist if using Rails 2.1 or newer" do | ||
| 21 | require 'active_record/version' | ||
| 22 | unless ActiveRecord::VERSION::STRING.to_f < 2.1 | ||
| 23 | ThinkingSphinx::Search.search_for_id(@id, @index).should == true | ||
| 24 | end | ||
| 25 | end | ||
| 26 | |||
| 27 | Then "it should not exist if using Rails 2.1 or newer" do | ||
| 28 | require 'active_record/version' | ||
| 29 | unless ActiveRecord::VERSION::STRING.to_f < 2.1 | ||
| 30 | ThinkingSphinx::Search.search_for_id(@id, @index).should == false | ||
| 31 | end | ||
| 32 | end | ||
| 33 | |||
| 34 | Then /^I can iterate by result and group and count$/ do | ||
| 35 | results.each_with_groupby_and_count do |result, group, count| | ||
| 36 | result.should be_kind_of(@model) | ||
| 37 | count.should be_kind_of(Integer) | ||
| 38 | group.should be_kind_of(Integer) | ||
| 39 | end | ||
| 40 | end | ||
| 41 | |||
| 42 | Then "each result id should match the corresponding sphinx internal id" do | ||
| 43 | results.each_with_sphinx_internal_id do |result, id| | ||
| 44 | result.id.should == id | ||
| 45 | end | ||
| 46 | end | ||
| 47 | |||
| 48 | Then "I should have an array of integers" do | ||
| 49 | results.each do |result| | ||
| 50 | result.should be_kind_of(Integer) | ||
| 51 | end | ||
| 52 | end | ||
| 53 | |||
| 54 | Then "searching for ids should match the record ids of the normal search results" do | ||
| 55 | normal_results = results | ||
| 56 | |||
| 57 | # reset search, switch method | ||
| 58 | @results = nil | ||
| 59 | @method = :search_for_ids | ||
| 60 | |||
| 61 | results.should == normal_results.collect(&:id) | ||
| 62 | end | ||
| 63 | |||
| 64 | Then /^I should get a value of (\d+)$/ do |count| | ||
| 65 | results.should == count.to_i | ||
| 66 | end \ No newline at end of file | ||
diff --git a/vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb b/vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb deleted file mode 100644 index 1633249..0000000 --- a/vendor/plugins/thinking-sphinx/features/step_definitions/sphinx_steps.rb +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 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 | ||
