Sha256: 363e2d8a24e19cd7a6519204f0a85ae3ca9a211d08d4fab31a22ecd81d656912

Contents?: true

Size: 471 Bytes

Versions: 35

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'
require_relative '../helper_shared_context'

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

        describe "#execute" do
          subject { described_class.new(config).execute }
          it "executes the stop action" do
            expect(Open3).to receive(:capture3).with({}, "flydata stop")
            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/stop_agent_spec.rb
flydata-0.6.13 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.12 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.11 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.10 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.9 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.8 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.7 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.6 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.5 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.4 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.3 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.2 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.1 spec/flydata/helper/action/stop_agent_spec.rb
flydata-0.6.0 spec/flydata/helper/action/stop_agent_spec.rb