Sha256: ba0656694b59693b59b4f48c9f142310ceb500b4807abba9fb6eb95c3ef765fe

Contents?: true

Size: 791 Bytes

Versions: 37

Compression:

Stored size: 791 Bytes

Contents

require 'spec_helper'

module Flydata
  module Command
    describe Sender do
      before :each do
        @sender = Sender.new
      end
      describe '#start' do
        it 'starts fluentd' do
          api_client = double('api_client')
          api_client.stub_chain(:data_port, :get, :[]).and_return 'active'
          ApiClient.stub(:new).and_return api_client

          @sender.start
        end
      end
      describe '#stop' do
        it 'stops fluentd' do
          @sender.stop
        end
      end
      describe '#restart' do
        before :all do
          @sender = Sender.new
          @sender.start
        end
        it 'restart fluentd' do
          @sender.restart
        end
        after :all do
          @sender.stop
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
flydata-0.0.5.6 spec/flydata/command/sender_spec.rb
flydata-0.0.5.5 spec/flydata/command/sender_spec.rb
flydata-0.0.5.4 spec/flydata/command/sender_spec.rb
flydata-0.0.5.3 spec/flydata/command/sender_spec.rb
flydata-0.0.5.2 spec/flydata/command/sender_spec.rb
flydata-0.0.5.1 spec/flydata/command/sender_spec.rb
flydata-0.0.5.0 spec/flydata/command/sender_spec.rb
flydata-0.0.4.4 spec/flydata/command/sender_spec.rb
flydata-0.0.4.3 spec/flydata/command/sender_spec.rb
flydata-0.0.4.2 spec/flydata/command/sender_spec.rb
flydata-0.0.4.1 spec/flydata/command/sender_spec.rb
flydata-0.0.4.0 spec/flydata/command/sender_spec.rb
flydata-0.0.3.8 spec/flydata/command/sender_spec.rb
flydata-0.0.3.7 spec/flydata/command/sender_spec.rb
flydata-0.0.3.6 spec/flydata/command/sender_spec.rb
flydata-0.0.3.5 spec/flydata/command/sender_spec.rb
flydata-0.0.3.4 spec/flydata/command/sender_spec.rb
flydata-0.0.3.3 spec/flydata/command/sender_spec.rb
flydata-0.0.3.2 spec/flydata/command/sender_spec.rb
flydata-0.0.3.1 spec/flydata/command/sender_spec.rb