Sha256: fa15b36453ca1caa2f5bb5905a6b0c0c2d8a1d17f72513f05b32c3dc3b3be005

Contents?: true

Size: 860 Bytes

Versions: 5

Compression:

Stored size: 860 Bytes

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require 'gooddata/cli/cli'

describe 'GoodData::CLI - api', :broken => true do
  describe 'api' do
    it 'Complains when no subcommand specified' do
      args = %w(api)

      out = run_cli(args)
      out.should include("Command 'api' requires a subcommand info,get")
    end
  end

  describe 'api info' do
    it 'Can be called without arguments' do
      args = %w(api info)

      run_cli(args)
    end
  end

  describe 'api get' do
    it 'Can be called without arguments' do
      args = %w(api get)

      run_cli(args)
    end

    it 'Is able to get /gdc' do
      args = %w(api get /gdc)

      run_cli(args)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gooddata-0.6.26 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.25 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.24 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.23 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.22 spec/unit/cli/commands/cmd_api_spec.rb