Sha256: 9d1135e8fdf03f1a5eb61ea462ed96967d807f177dbd7120097a8678aa8eba08

Contents?: true

Size: 729 Bytes

Versions: 53

Compression:

Stored size: 729 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe RubyRabbitmqJanus::Janus::Responses::Response, type: :responses,
                                                        name: :response do
  let(:type) { 'base::info' }
  let(:message) do
    @gateway.start_transaction do |transaction|
      @response = transaction.publish_message(type)
    end
  end

  describe '#to_json' do
    let(:response) { @response.to_json }

    include_examples 'response is', String
  end

  describe '#to_hash' do
    let(:response) { @response.to_hash }

    include_examples 'response is', Hash
  end

  describe '#to_nice_json' do
    let(:response) { @response.to_nice_json }

    include_examples 'response is', String
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.5.1.pre.217 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.5.1 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.5.1.pre.215 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.5.0 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.213 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.210 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.5.0.pre.209 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.4.0.pre.208 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.1.pre.201 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.1.pre.198 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.197 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.196 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.0 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.194 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.192 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.3.0.pre.170 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.2.2 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.2.1 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.2.1.pre.181 spec/rrj/responses/responses_response_spec.rb
ruby_rabbitmq_janus-2.2.1.pre.180 spec/rrj/responses/responses_response_spec.rb