Sha256: 3b3dbdcd6fca4ac7f5b9e5909a8af3959d8bacb735fa6102bf271a5d941f84e0
Contents?: true
Size: 681 Bytes
Versions: 31
Compression:
Stored size: 681 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe RubyRabbitmqJanus::Janus::Responses::Standard, type: :responses, name: :standard do let(:response) { described_class.new(message) } describe '#plugin' do context 'with no plugindata' do let(:message) { {} } it { expect { response.plugin }.to raise_error(RubyRabbitmqJanus::Errors::Janus::Responses::Standard::Plugin) } end context 'with a session' do let(:message) { { 'plugindata' => { 'plugin' => 'fake', 'data' => { 'echotest' => 'event' } } } } it { expect(response.plugin).to be_kind_of(Hash) } end end end
Version data entries
31 entries across 31 versions & 1 rubygems