Sha256: 3d991f9b6cf71394927757597b5667ae7bd4c429a6cfc7aaf99fd4daf9511318

Contents?: true

Size: 609 Bytes

Versions: 28

Compression:

Stored size: 609 Bytes

Contents

require "#{File.dirname(__FILE__)}/../../test_helper"

class CloudProviderTest < Test::Unit::TestCase
  
  def setup
    @provider = CloudProviders::CloudProvider.new
  end
  
  def test_cloud_providers_are_included_in_all
    assert_respond_to CloudProviders, :all
    assert_respond_to CloudProviders.all, :each
    assert CloudProviders.all.include?(CloudProviders::Ec2)
  end
  
  def test_responds_to_core_methods
    %w(describe_instances 
       describe_instance
       terminate_instance!
       run_instance
       ).each do |meth|
         assert_respond_to @provider, meth
       end
  end
  
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
auser-poolparty-1.3.0 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.1 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.10 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.11 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.12 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.13 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.14 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.15 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.16 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.17 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.2 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.3 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.4 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.5 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.6 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.7 test/lib/cloud_providers/cloud_provider_test.rb
auser-poolparty-1.3.8 test/lib/cloud_providers/cloud_provider_test.rb
fairchild-poolparty-1.3.17 test/lib/cloud_providers/cloud_provider_test.rb
fairchild-poolparty-1.3.5 test/lib/cloud_providers/cloud_provider_test.rb
poolparty-1.3.15 test/lib/cloud_providers/cloud_provider_test.rb