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.7.19 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.18 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.17 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.16 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.15 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.14 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.13 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.12 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.11 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.10 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.9 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.8 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.7 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.6 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.5 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.4 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.2.1 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.2 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.1 spec/flydata/helper/action/restart_agent_spec.rb
flydata-0.7.0 spec/flydata/helper/action/restart_agent_spec.rb