Sha256: 2c880ae15ed55d655555952dc6db241be8ca825cac4a0605957475b4fc6e3a97
Contents?: true
Size: 1.11 KB
Versions: 31
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require 'spec_helper' describe RubyRabbitmqJanus::Tools::ConfigJanus, type: :tools, name: :config do let(:cfg) { RubyRabbitmqJanus::Tools::Config.instance } describe 'janus specific method' do context 'with time_to_live setting' do let(:method) { cfg.time_to_live } it_behaves_like 'type and default value', Integer, 55 end context 'with ttl (alias time_to_live) setting' do let(:method) { cfg.ttl } it_behaves_like 'type and default value', Integer, 55 end context 'with plugin_at setting' do let(:method) { cfg.plugin_at(index) } context 'when index 0' do let(:index) { 0 } it_behaves_like 'type and default value', String, 'janus.plugin.echotest' end context 'when index 1' do let(:index) { 1 } it_behaves_like 'type and default value', String, 'janus.plugin.videoroom' end context 'when index 2' do let(:index) { 2 } it_behaves_like 'type and default value', String, 'janus.plugin.sip' end end end end
Version data entries
31 entries across 31 versions & 1 rubygems