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