Sha256: 508ffcffafe23eebdf5cbc13367c55e7aa3cceb9de2fba36960ac6901dcdf777

Contents?: true

Size: 460 Bytes

Versions: 38

Compression:

Stored size: 460 Bytes

Contents

require "kontena/cli/stacks/list_command"

describe Kontena::Cli::Stacks::ListCommand do
  include ClientHelpers
  include RequirementsHelper

  expect_to_require_current_master
  expect_to_require_current_master_token

  describe '#execute' do
    it 'fetches stacks from master' do
      stacks = {
        'stacks' => []
      }
      expect(client).to receive(:get).with('grids/test-grid/stacks').and_return(stacks)
      subject.run([])
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
kontena-cli-1.3.5 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.5.rc1 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.4.0.pre6 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.4.0.pre5 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.4.0.pre4 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.4.0.pre3 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.4.0.pre2 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.4.0.pre1 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.4 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.4.rc1 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.3 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.3.rc1 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.2 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.2.rc2 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.2.rc1 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.1 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.1.rc2 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.1.rc1 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.0 spec/kontena/cli/stacks/list_command_spec.rb
kontena-cli-1.3.0.rc4 spec/kontena/cli/stacks/list_command_spec.rb