Sha256: 066266fa8941b06efe540a3e08ff2bb09b4416c1fd36d11e7ea64af3f4acc1fa

Contents?: true

Size: 1.07 KB

Versions: 45

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Responses::Admin, type: :responses,
                                                     level: :admin,
                                                     broken: true,
                                                     name: :admin do
  let(:message) do
    @gateway.start_transaction_admin do |transaction|
      @response = transaction.publish_message(type)
    end
  end

  describe '#sessions' do
    let(:type) { 'admin::sessions' }
    let(:response) { @response.sessions }

    include_examples 'response is', Array
  end

  describe '#handles' do
    let(:type) { 'admin::handles' }
    let(:response) { @response.handles }

    include_examples 'response is', Array
  end

  describe '#info' do
    before do
      @gateway.start_transaction do |transaction|
        @response = transaction.publish_message('base::attach')
      end
    end

    let(:type) { 'admin::handle_info' }
    let(:response) { @response.info }

    include_examples 'admin response with sender is', Hash
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.322 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.320 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.319 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.318 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.317 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.316 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.315 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.314 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.312 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.310 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.309 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.308 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.307 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.306 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.305 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.302 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.297 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.296 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.286 spec/ruby_rabbitmq_janus/janus/responses/admin_spec.rb