Sha256: 9f1e351a3a9be0478131e9f3a2ac976eb6d5e0f9cbbdb81a10e951cb0938e9f2

Contents?: true

Size: 968 Bytes

Versions: 21

Compression:

Stored size: 968 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Responses::Admin, type: :responses,
                                                     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(:example) 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

21 entries across 21 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.2.0.pre.42 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.1 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.1.pre.139 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.137 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.136 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.135 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.132 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.131 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.130 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.129 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.1.0.pre.128 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0.pre.108 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0.pre.106 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0.pre.101 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0.pre.100 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0.pre.97 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0.pre.96 spec/rrj/responses/responses_admin_spec.rb
ruby_rabbitmq_janus-2.0.0.pre.95 spec/rrj/responses/responses_admin_spec.rb