Sha256: 10c4088f78db8bc6b71a9398303be4f52ea461d4e6ef1ad9d4e8f31e678538d2

Contents?: true

Size: 1 KB

Versions: 6

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::RRJAdmin, type: :request,
                                      level: :admin,
                                      broken: true,
                                      name: :list_handles do
  before { helper_janus_instance_without_token }

  let(:type) { 'admin::list_handles' }
  let(:number) { '1' }
  let(:schema_success) { type }
  let(:parameter) { {} }

  context 'when request #list_handles' do
    context 'when no session/handle' do
      let(:exception_class) { RubyRabbitmqJanus::Errors::Janus::Responses::InvalidRequestPath }
      let(:exception_message) { "[457] Reason : Unhandled request 'list_handles' at this path" }

      include_examples 'when transaction admin exception'
    end

    context 'when session/handle exist' do
      before { helper_janus_instance_create_handle }

      let(:info) { :handles }
      let(:info_type) { Array }

      include_examples 'when transaction admin success info'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-4.0.0.pre.949167646 spec/ruby_rabbitmq_janus/rrj_admin_list_handles_spec.rb
ruby_rabbitmq_janus-4.0.0.pre.946892338 spec/ruby_rabbitmq_janus/rrj_admin_list_handles_spec.rb
ruby_rabbitmq_janus-4.0.0.pre.946565704 spec/ruby_rabbitmq_janus/rrj_admin_list_handles_spec.rb
ruby_rabbitmq_janus-4.0.0.pre.939149205 spec/ruby_rabbitmq_janus/rrj_admin_list_handles_spec.rb
ruby_rabbitmq_janus-4.0.0.pre.939137013 spec/ruby_rabbitmq_janus/rrj_admin_list_handles_spec.rb
ruby_rabbitmq_janus-4.0.0.pre.939133437 spec/ruby_rabbitmq_janus/rrj_admin_list_handles_spec.rb