spec/punchblock/translator/asterisk_spec.rb in punchblock-2.0.0.beta1 vs spec/punchblock/translator/asterisk_spec.rb in punchblock-2.0.0.beta2

- old
+ new

@@ -6,29 +6,18 @@ module Punchblock module Translator describe Asterisk do let(:ami_client) { double 'RubyAMI::Client' } let(:connection) { double 'Connection::Asterisk', handle_event: nil } - let(:media_engine) { :asterisk } - let(:translator) { Asterisk.new ami_client, connection, media_engine } + let(:translator) { Asterisk.new ami_client, connection } subject { translator } its(:ami_client) { should be ami_client } its(:connection) { should be connection } after { translator.terminate if translator.alive? } - - context 'with a configured media engine of :asterisk' do - let(:media_engine) { :asterisk } - its(:media_engine) { should be == :asterisk } - end - - context 'with a configured media engine of :unimrcp' do - let(:media_engine) { :unimrcp } - its(:media_engine) { should be == :unimrcp } - end describe '#shutdown' do it "instructs all calls to shutdown" do call = Asterisk::Call.new 'foo', subject, ami_client, connection call.async.should_receive(:shutdown).once