Sha256: b552adff69a2b20fed589671bba620f6a0addfe83dcae6ea0dd893c8f473ab7a

Contents?: true

Size: 670 Bytes

Versions: 13

Compression:

Stored size: 670 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe "OnStomp::Client.new with failover", :failover => true do
  describe "monkey patching OnStomp::Client" do
    it "should return a failover client if given an array" do
      OnStomp::Client.new(['stomp:///', 'stomp+ssl:///']).should be_a_kind_of(OnStomp::Failover::Client)
    end
    it "should return a failover client if given a failover: URI" do
      OnStomp::Client.new('failover:(stomp:///,stomp+ssl:///)').should be_a_kind_of(OnStomp::Failover::Client)
    end
    it "should be a regular client otherwise" do
      OnStomp::Client.new('stomp:///').should be_a_kind_of(OnStomp::Client)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
onstomp-1.0.12 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.11 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.10 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.9 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.8 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.7 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.6 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.5 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.4 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.3 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.2 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.1 spec/onstomp/failover/new_with_failover_spec.rb
onstomp-1.0.0 spec/onstomp/failover/new_with_failover_spec.rb