Sha256: 6a4e54a0f8e7e3e49122756d4bccc573df0616758ac8d1e7b141c0c76bcfa528

Contents?: true

Size: 494 Bytes

Versions: 35

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'
require_relative '../helper_shared_context'

module Flydata
  module Helper
    module Action
      describe RestartAgent do
        include_context 'helper context'

        describe "#execute" do
          subject { described_class.new(config).execute }
          it "executes the restart action" do
            expect(Open3).to receive(:capture3).with({}, "flydata restart --skip-helper")
            subject
          end
        end
      end
    end
  end
end      

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
flydata-0.6.14 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.13 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.12 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.11 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.10 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.9 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.8 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.7 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.6 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.5 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.4 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.3 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.2 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.1 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.6.0 spec/flydata/helper/action/restart_agent_spec.rb