Sha256: ac5a51db253db7dc27fbfa825f8fd6d62e29950f7bcbb4d9565580b7eb8af984

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'

describe KJess::Connection do

  it "Returns a callable for the factory" do
    KJess::Connection.socket_factory.respond_to?(:call).must_equal true
  end

  it "Default Factory returns a KJess::Socket" do
    factory = KJess::Connection.socket_factory
    s = factory.call( :port => KJess::Spec.memcache_port, :host => 'localhost' )
    s.instance_of?(KJess::Socket).must_equal true
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kjess-1.2.0 spec/connection_spec.rb