Sha256: 27dccf0b11d843a7122f6b2abb6fd5a1b0b4807deef064b0314ff46dc5fe1baf
Contents?: true
Size: 676 Bytes
Versions: 31
Compression:
Stored size: 676 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe RubyRabbitmqJanus::Janus::Responses::Admin, type: :responses, name: :admin do let(:response) { described_class.new(message) } describe '#no_media_timer' do context 'with no no_media_timer' do let(:message) { {} } it { expect { response.no_media_timer }.to raise_error(RubyRabbitmqJanus::Errors::Janus::Responses::Admin::NoMediaTimer) } end context 'with no_media_timer' do let(:message) { { 'no_media_timer' => (rand * 10_000).to_i } } it { expect(response.no_media_timer).to be_kind_of(Integer) } end end end
Version data entries
31 entries across 31 versions & 1 rubygems