Sha256: 99c1b7560d6fe83d4cee2b4d161a5e63f5f5763dbcac5eb31979033bc8aac085

Contents?: true

Size: 609 Bytes

Versions: 22

Compression:

Stored size: 609 Bytes

Contents

require File.expand_path("../helper", __FILE__)

class TestConnect < Test::Unit::TestCase
  def test_running_when_ready
    connect = Sauce::Connect.new(:host => "saucelabs.com", :port => 80)
    assert_equal "uninitialized", connect.status
    connect.wait_until_ready
    assert_equal "running", connect.status 
    connect.disconnect
  end

  def test_error_flag
    connect = Sauce::Connect.new(:host => "saucelabs.com", :port => 80, :username => 'fail')
    start = Time.now
    while Time.now-start < 20 && !connect.error
      sleep 1
    end

    assert connect.error
    connect.disconnect
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sauce-0.19.0 test/test_connect.rb
sauce-0.18.3 test/test_connect.rb
sauce-0.18.2 test/test_connect.rb
sauce-0.18.1 test/test_connect.rb
sauce-0.18.0 test/test_connect.rb
sauce-0.17.8 test/test_connect.rb
sauce-0.17.7 test/test_connect.rb
sauce-0.17.6 test/test_connect.rb
sauce-0.17.5 test/test_connect.rb
sauce-0.17.4 test/test_connect.rb
sauce-0.17.3 test/test_connect.rb
sauce-0.17.3.alpha2 test/test_connect.rb
sauce-0.17.3.alpha1 test/test_connect.rb
sauce-0.17.2 test/test_connect.rb
sauce-0.17.1 test/test_connect.rb
sauce-0.17.0 test/test_connect.rb
sauce-0.16.2 test/test_connect.rb
sauce-0.16.1 test/test_connect.rb
sauce-0.15.1 test/test_connect.rb
sauce-0.15.0 test/test_connect.rb