Sha256: af186809fc7daeb86b3acca5cd08c0abe635c68dea1138ac916b226522554cb0

Contents?: true

Size: 635 Bytes

Versions: 15

Compression:

Stored size: 635 Bytes

Contents

require 'spec_helper'

if Riddle.loaded_version == '0.9.9' || Riddle.loaded_version == '1.10'
  describe "Sphinx Status", :live => true do
    before :each do
      @client = Riddle::Client.new("localhost", 9313)
      @status = @client.status
    end
  
    it "should return a hash" do
      @status.should be_a(Hash)
    end
  
    it "should include the uptime, connections, and command_search keys" do
      # Not checking all values, but ensuring keys are being set correctly
      @status[:uptime].should_not be_nil
      @status[:connections].should_not be_nil
      @status[:command_search].should_not be_nil
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
riddle-2.1.0 spec/functional/status_spec.rb
riddle-2.0.0 spec/functional/status_spec.rb
riddle-1.5.12 spec/functional/status_spec.rb
riddle-1.5.11 spec/functional/status_spec.rb
riddle-1.5.10 spec/functional/status_spec.rb
riddle-1.5.9 spec/functional/status_spec.rb
riddle-1.5.8 spec/functional/status_spec.rb
riddle-1.5.7 spec/functional/status_spec.rb
riddle-1.5.6 spec/functional/status_spec.rb
riddle-1.5.5 spec/functional/status_spec.rb
riddle-1.5.4 spec/functional/status_spec.rb
riddle-1.5.3 spec/functional/status_spec.rb
riddle-1.5.2 spec/functional/status_spec.rb
riddle-1.5.1 spec/functional/status_spec.rb
riddle-1.5.0 spec/functional/status_spec.rb