Sha256: 4d9550a7197f23cc6615e7eb299f99cd7691c6bffd23d8e3e7db8f56e8d0ee44

Contents?: true

Size: 1.6 KB

Versions: 13

Compression:

Stored size: 1.6 KB

Contents

# encoding: UTF-8

require 'gooddata/cli/cli'

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

      out = run_cli(args)
      out.should include "Command 'project' requires a subcommand jack_in,create,delete,clone,invite,users,show,build,update,roles,validate"
    end
  end

  describe 'project build' do
    it 'Can be called without arguments' do
      args = %w(project build)

      run_cli(args)
    end
  end

  describe 'project clone' do
    it 'Can be called without arguments' do
      args = %w(project clone)

      run_cli(args)
    end
  end

  describe 'project create' do
    it 'Can be called without arguments' do
      args = %w(project create)

      # TODO: Pass all required args to prevent interaction
      # TODO: Investigate, fix and enable execution
      # run_cli(args)
    end
  end

  describe 'project delete' do
    it 'Can be called without arguments' do
      args = %w(project delete)

      run_cli(args)
    end
  end

  describe 'project jack_in' do
    it 'Can be called without arguments' do
      args = %w(project jack_in)

      run_cli(args)
    end
  end

  describe 'project list' do
    it 'Can be called without arguments' do
      args = %w(project list)

      run_cli(args)
    end
  end

  describe 'project show' do
    it 'Can be called without arguments' do
      args = %w(project show)

      run_cli(args)
    end
  end

  describe 'project update' do
    it 'Can be called without arguments' do
      args = %w(project update)

      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_project_spec.rb
gooddata-0.6.19 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.18 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.17 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.16 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.15 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.14 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.13 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.12 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.11 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.10 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.9 spec/unit/cli/commands/cmd_project_spec.rb
gooddata-0.6.8 spec/unit/cli/commands/cmd_project_spec.rb