Sha256: 7728ca14b768cfe528dc1660e753c7b4de0c6ad36039915a5ad40da725ded55c

Contents?: true

Size: 592 Bytes

Versions: 51

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Tools::Cluster, type: :tools, name: :cluster do
  let(:cluster) { described_class.instance }
  let(:model) { RubyRabbitmqJanus::Models::JanusInstance }
  let(:number_of_instance) { Random.new.rand(100) }
  let(:name_queue) { "to-janus-#{number_of_instance}" }
  let(:name_queue_admin) { "to-janus-admin-#{number_of_instance}" }

  it do
    expect(cluster.queue_to(number_of_instance)).to eql(name_queue)
  end

  it do
    expect(cluster.queue_admin_to(number_of_instance)).to eql(name_queue_admin)
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-3.0.0.pre.336 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.335 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.334 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.330 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.328 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.327 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.322 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.320 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.319 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.318 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.317 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.316 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.315 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.314 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.312 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.310 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.309 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.308 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.307 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb