Sha256: 4dee36dd43fdff2ac6ec8dc1a7247399a26abdcf6de2863f52ce434db516fafa

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 Bytes

Contents

# encoding: UTF-8

require 'gooddata/cli/cli'

describe 'GoodData::CLI - api' 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

6 entries across 6 versions & 1 rubygems

Version Path
gooddata-0.6.7 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.6 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.5 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.4 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.3 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.2 spec/unit/cli/commands/cmd_api_spec.rb