Sha256: f06634b33b89a2f061dffd63692897c7ef3e7251b8d201233a940bbe5e6615ce

Contents?: true

Size: 659 Bytes

Versions: 13

Compression:

Stored size: 659 Bytes

Contents

# encoding: UTF-8

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

13 entries across 13 versions & 1 rubygems

Version Path
gooddata-0.6.20 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.19 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.18 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.17 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.16 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.15 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.14 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.13 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.12 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.11 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.10 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.9 spec/unit/cli/commands/cmd_api_spec.rb
gooddata-0.6.8 spec/unit/cli/commands/cmd_api_spec.rb