Sha256: 0d38bf4e0532a8ffbf37c515baa9a52c07cec40e6302b93c650c4a1682b9c17a

Contents?: true

Size: 417 Bytes

Versions: 56

Compression:

Stored size: 417 Bytes

Contents

require "kontena/cli/stacks/restart_command"

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

  expect_to_require_current_master
  expect_to_require_current_master_token

  describe '#execute' do
    it 'sends stop request to server' do
      expect(client).to receive(:post).with('stacks/test-grid/foo/restart', {})
      subject.run(['foo'])
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
kontena-cli-1.3.5 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.3.5.rc1 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.rc2 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.rc1 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre14 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre13 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre12 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre11 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre10 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre9 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre8 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre7 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre6 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre5 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre4 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre3 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre2 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.4.0.pre1 spec/kontena/cli/stacks/restart_command_spec.rb
kontena-cli-1.3.4 spec/kontena/cli/stacks/restart_command_spec.rb