Sha256: abaa7255ceae1e12d311e920f86f570b61ea99a01b185526b04c120429402727

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

require 'spec_helper'

describe "Sphinx Persistance Connection" do
  before :each do
    @client = Riddle::Client.new("localhost", 9313)
  end
  
  it "should raise errors once already opened" do
    @client.open
    lambda { @client.open }.should raise_error
    @client.close
  end
  
  it "should raise errors if closing when already closed" do
    lambda { @client.close }.should raise_error
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
riddle-1.4.0 spec/functional/persistance_spec.rb
riddle-1.3.3 spec/functional/persistance_spec.rb
riddle-1.3.2 spec/functional/persistance_spec.rb
riddle-1.3.1 spec/functional/persistance_spec.rb
riddle-1.3.0 spec/functional/persistance_spec.rb