Sha256: 0b475e9e9858847d3e291caf7aa63f887a16016023503b54d663095cccf8bafa
Contents?: true
Size: 1.48 KB
Versions: 19
Compression:
Stored size: 1.48 KB
Contents
# frozen_string_literal: true require 'spec_helper' describe RubyRabbitmqJanus::RRJ, type: :request, level: :admin, broken: true, name: :destroy do before { helper_janus_instance_without_token } let(:type) { 'base::destroy' } let(:number) { '1' } let(:parameter) { {} } shared_context 'when success' do before { helper_janus_instance_create_session } end shared_context 'when failed' do let(:exception_class) { RubyRabbitmqJanus::Errors::Janus::Responses::InvalidRequestPath } let(:exception_message) { "[457] Reason : Unhandled request 'destroy' at this path" } end describe 'request #destroy' do context 'when queue is exclusive' do context 'with session' do let(:schema_success) { type } include_context 'when success' include_examples 'when transaction exclusive success' end context 'without session' do include_context 'when failed' include_examples 'when transaction exclusive exception' end end context 'when queue is not exclusive' do context 'with session' do let(:schema_success) { type } include_context 'when success' include_examples 'when transaction not exclusive success' end context 'without session' do include_context 'when failed' include_examples 'when transaction not exclusive exception' end end end end
Version data entries
19 entries across 19 versions & 1 rubygems