Sha256: 7d9f7f204f85a0851298248aef5f29aec6b03047916b8c87d1489789dacd7ed2

Contents?: true

Size: 506 Bytes

Versions: 7

Compression:

Stored size: 506 Bytes

Contents

require File.expand_path 'test_helper', File.dirname(__FILE__)

class TestSkypeCall < MiniTest::Test

  SKYPE_FROM = ENV["SKYPE_FROM"]
  SKYPE_TO   = "echo123"

  def test_call
    call = Skype.call SKYPE_TO
    STDERR.puts call if call.kind_of? String
    assert_equal call.class, Skype::Call
    assert_equal call.to, SKYPE_TO
    while !call.talking?
      sleep 2
    end
    call.hangup
    assert [:finished, :missed, :cancelled].include? call.status
    assert_equal call.talking?, false
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
skype-0.2.8 test/test_call.rb
skype-0.2.7 test/test_call.rb
skype-0.2.6 test/test_call.rb
skype-0.2.5 test/test_call.rb
skype-0.2.4 test/test_call.rb
skype-0.2.3 test/test_call.rb
skype-0.2.2 test/test_call.rb