Sha256: 712adfbf8f5b28653a39bbc385b31210b273d774c8be1a2705dffc7e417deb35

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require 'adhearsion'
require 'matrioska'

describe Adhearsion::Call do
  let(:call) { Adhearsion::Call.new }


  it 'should track all runners launched with it' do
    runner = Matrioska::AppRunner.new call
    call.runners.should include(runner)
  end

  it 'should be possible to stop all runners on a call' do
    r1 = Matrioska::AppRunner.new call
    r2 = Matrioska::AppRunner.new call
    r3 = Matrioska::AppRunner.new call

    r1.should_receive(:stop!).once
    r2.should_receive(:stop!).once
    r3.should_receive(:stop!).once

    call.stop_all_runners!
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
matrioska-0.3.0 spec/matrioska/core_ext/adhearsion_call_spec.rb