Sha256: cc03696075e0efe8badfece9fabb13f4572507d6fd9ff41083281a6c8f959c19

Contents?: true

Size: 461 Bytes

Versions: 6

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'

describe FluQ::URL do

  it "should parse URLs" do
    described_class.parse("tcp://localhost:1234/", ["tcp"]).should be_instance_of(URI::Generic)
    described_class.parse("tcp://localhost:1234/", ["tcp", "unix"]).should be_instance_of(URI::Generic)
  end

  it "should ensure correct schemes" do
    lambda {
      described_class.parse("tcp://localhost:1234/", ["udp", "unix"])
    }.should raise_error(URI::InvalidURIError)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fluq-0.8.1 spec/fluq/url_spec.rb
fluq-0.8.0 spec/fluq/url_spec.rb
fluq-0.7.5 spec/fluq/url_spec.rb
fluq-0.7.3 spec/fluq/url_spec.rb
fluq-0.7.1 spec/fluq/url_spec.rb
fluq-0.7.0 spec/fluq/url_spec.rb