Sha256: 81d8d1d757213e25478505cd9e9cef36784f141e5336b48baa634f1f7a9bf96a

Contents?: true

Size: 420 Bytes

Versions: 15

Compression:

Stored size: 420 Bytes

Contents

require 'spec_helper'

describe "Sphinx Persistance Connection", :live => true 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

15 entries across 15 versions & 1 rubygems

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