Sha256: 0aa8a98a1cbaf99ca8c0407d46a4b1d562997b864ae54d277b16af52360f59e9

Contents?: true

Size: 695 Bytes

Versions: 3

Compression:

Stored size: 695 Bytes

Contents

require File.dirname(__FILE__) + "/test_helper"

unit_tests do

  test "hub is nil on a fresh cloud" do
    assert_nil SeleniumGrid::AWS::Cloud.new.hub
  end

  test "hub return the latest assigned hub instance" do
    cloud = SeleniumGrid::AWS::Cloud.new
    cloud.hub = :old_hub
    cloud.hub = :new_hub
    assert_equal :new_hub, cloud.hub
  end

  test "remote_control_farms is empty on a fresh cloud" do
    assert_equal [], SeleniumGrid::AWS::Cloud.new.farms
  end

  test "remote_control_farms returns all added farms" do
    cloud = SeleniumGrid::AWS::Cloud.new
    cloud.farms << :a_farm
    cloud.farms << :another_farm
    assert_equal [:a_farm, :another_farm], cloud.farms
  end

end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
selenium-rspec-dsl-1.0.2 vendor/selenium-grid-1.0.4/examples/ec2/test/unit/cloud_test.rb
davidtrogers-selenium-grid-0.0.1 examples/ec2/test/unit/cloud_test.rb
statt-0.0.1 lib/selenium-grid/examples/ec2/test/unit/cloud_test.rb