Sha256: 75ff130887a673b18700e37e80654827a3e3763762752fb0304fd85c1150dffd

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

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 - process', :broken => true do
  describe 'process' do
    it 'Complains when no subcommand specified' do
      args = %w(process)

      out = run_cli(args)
      out.should include "Command 'process' requires a subcommand list,show,deploy,delete,execute"
    end
  end

  describe 'process deploy' do
    it 'Can be called without arguments' do
      args = %w(process deploy)

      run_cli(args)
    end
  end

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

      run_cli(args)
    end
  end

  describe 'process list' do
    it 'Lists processes when project ID specified' do
      args = [
        'process',
        'list',
        ProjectHelper::PROJECT_ID
      ]

      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_process_spec.rb
gooddata-0.6.25 spec/unit/cli/commands/cmd_process_spec.rb
gooddata-0.6.24 spec/unit/cli/commands/cmd_process_spec.rb
gooddata-0.6.23 spec/unit/cli/commands/cmd_process_spec.rb
gooddata-0.6.22 spec/unit/cli/commands/cmd_process_spec.rb