Sha256: 77021660efa08fc37a4c9b092ccd83dd73b31682e03729ff3f9d5a17e3392843
Contents?: true
Size: 692 Bytes
Versions: 32
Compression:
Stored size: 692 Bytes
Contents
require_relative "../../../spec_helper" require "kontena/cli/services/restart_command" describe Kontena::Cli::Services::RestartCommand do include ClientHelpers describe '#execute' do before(:each) do allow(subject).to receive(:restart_service).and_return({}) end it 'requires api url' do expect(subject).to receive(:require_api_url).once subject.run(['service']) end it 'requires token' do expect(subject).to receive(:require_token).once subject.run(['service']) end it 'triggers restart command' do expect(subject).to receive(:restart_service).with(token, 'service') subject.run(['service']) end end end
Version data entries
32 entries across 32 versions & 1 rubygems