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