Sha256: c0a49acb4a9f5556197d84ae236cd1576fbfc0be075c8cf3b78e0afe5d1d5690

Contents?: true

Size: 656 Bytes

Versions: 31

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Responses::Admin, type: :responses,
                                                     name: :admin do
  let(:response) { described_class.new(message) }

  describe '#locking_debug' do
    context 'with no locking_debug' do
      let(:message) { {} }

      it { expect { response.locking_debug }.to raise_error(RubyRabbitmqJanus::Errors::Janus::Responses::Admin::LockingDebug) }
    end

    context 'with locking_debug' do
      let(:message) { { 'locking_debug' => true } }

      it { expect(response.locking_debug).to be_kind_of(TrueClass) }
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-3.0.0 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.387 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.385 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.384 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.382 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.366 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.364 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.358 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.354 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.352 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb
ruby_rabbitmq_janus-3.0.0.pre.351 spec/ruby_rabbitmq_janus/janus/responses/admin_locking_debug_spec.rb