Sha256: 638aeedbbbe5db7ebe4a25f8a5fd8dc347eacf0f5e16843028aef366e6499942

Contents?: true

Size: 1.12 KB

Versions: 45

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Responses::Standard, type: :responses,
                                                        broken: true,
                                                        name: :standard do
  let(:message) do
    @gateway.start_transaction do |transaction|
      @response = transaction.publish_message(type)
    end
  end

  context 'when just session' do
    describe '#session' do
      let(:type) { 'base::create' }
      let(:response) { @response.session }

      include_examples 'response is', Integer
    end

    describe '#sender' do
      let(:type) { 'base::create' }
      let(:response) { @response.sender }

      include_examples 'response is', Integer
    end
  end

  context 'when session and sender' do
    before do
      @gateway.start_transaction do |transaction|
        @response = transaction.publish_message('base::create')
      end
    end

    describe '#session_id' do
      let(:type) { 'base::attach' }
      let(:response) { @response.session_id }

      include_examples 'response with sender is', Integer
    end
  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/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.322 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.320 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.319 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.318 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.317 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.316 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.315 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.314 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.312 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.310 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.309 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.308 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.307 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.306 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.305 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.302 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.297 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.296 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.286 spec/ruby_rabbitmq_janus/janus/responses/standard_spec.rb