Sha256: 00c1f60d3a351607dd7baff9729c4da30b74c3fbde067f241142d5bb946f2937

Contents?: true

Size: 714 Bytes

Versions: 23

Compression:

Stored size: 714 Bytes

Contents

require "test_helper"

describe CloudstackClient::Client do
  before do
    @client = CloudstackClient::Client.new(
      "https://cloudstack.api/client/api",
      "test-key",
      "test-secret"
    )
  end

  describe "when the client is instantiated" do
    it "must respond_to 'list_virtual_machines'" do
      @client.respond_to?(:list_virtual_machines).must_equal true
    end

    it "must respond_to 'deploy_virtual_machine'" do
      @client.respond_to?(:deploy_virtual_machine).must_equal true
    end

    it "must respond_to 'create_user'" do
      @client.respond_to?(:create_user).must_equal true
    end

    it "must not be in debug mode" do
      @client.debug.must_equal false
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
cloudstack_client-1.5.7 test/client_test.rb
cloudstack_client-1.5.6 test/client_test.rb
cloudstack_client-1.5.5 test/client_test.rb
cloudstack_client-1.5.4 test/client_test.rb
cloudstack_client-1.5.3 test/client_test.rb
cloudstack_client-1.5.2 test/client_test.rb
cloudstack_client-1.5.1 test/client_test.rb
cloudstack_client-1.5.0 test/client_test.rb
cloudstack_client-1.4.3 test/client_test.rb
cloudstack_client-1.4.2 test/client_test.rb
cloudstack_client-1.4.1 test/client_test.rb
cloudstack_client-1.4.0 test/client_test.rb
cloudstack_client-1.3.1 test/client_test.rb
cloudstack_client-1.3.0 test/client_test.rb
cloudstack_client-1.2.3 test/client_test.rb
cloudstack_client-1.2.2 test/client_test.rb
cloudstack_client-1.2.1 test/client_test.rb
cloudstack_client-1.2.0 test/client_test.rb
cloudstack_client-1.1.1 test/client_test.rb
cloudstack_client-1.1.0 test/client_test.rb