Sha256: 17988b9e5bd2a871f5b8d83b8c5f7a462b711dec04854c81eb7476123be58885

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

require 'spec_helper'

describe Fwd::Backend do

  subject do
    described_class.new "tcp://127.0.0.1:7289"
  end

  before do
    TCPSocket.any_instance.stub write: true
  end

  its(:url)  { should be_instance_of(URI::Generic) }
  its(:to_s) { should == "tcp://127.0.0.1:7289" }

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fwd-0.4.0 spec/fwd/backend_spec.rb
fwd-0.3.3 spec/fwd/backend_spec.rb
fwd-0.3.2 spec/fwd/backend_spec.rb
fwd-0.3.1 spec/fwd/backend_spec.rb
fwd-0.3.0 spec/fwd/backend_spec.rb