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-2.6.0.pre.247 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.246 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.244 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.240 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.239 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.238 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.233 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.229 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.228 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.227 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.226 spec/ruby_rabbitmq_janus/tools/cluster_spec.rb