Sha256: bb7279981463a2c7ef2d41508d9fb1a5c25afdfd9563c06962ccf9f4ce66127e

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

require 'sitehub/logging/log_stash'

class SiteHub
  module Logging
    describe LogStash do
      it 'inherits Array' do
        expect(subject).to be_a_kind_of(Array)
      end

      describe '#<<' do
        it 'adds a LogEntry' do
          allow(Time).to receive(:now).and_return(:current_time)
          subject << :message
          expect(subject).to eq([LogEntry.new(:message)])
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sitehub-0.4.3 spec/sitehub/logging/log_stash_spec.rb