Sha256: a0f56c7cff73b03b5a9fad16ec70674dcefe809a40c6f27a80df2dfbec7485b8

Contents?: true

Size: 563 Bytes

Versions: 14

Compression:

Stored size: 563 Bytes

Contents

require 'spec_helper'
require_relative '../helper_shared_context'
require 'flydata/helper/action/restart_agent'

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_CMD_PATH} restart --skip-helper -y --auto-create")
            subject
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
flydata-0.8.10.2 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.10.1 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.9.11 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.10 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.9 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.8 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.7 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.6 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.5 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.4 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.3 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.2 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.1 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.8.0 spec/flydata/helper/action/restart_agent_spec.rb