Sha256: 79212b54c62a916c9aca4a290f121457b723f0c41967a53d4abffd2ec0f6684b

Contents?: true

Size: 494 Bytes

Versions: 15

Compression:

Stored size: 494 Bytes

Contents

require 'sitehub/middleware/logging/log_stash'

class SiteHub
  module Middleware
    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
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.4.10 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha11 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha10 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha8 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha7 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha6 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha5 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha4 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha3 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.5.0.alpha2 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.4.9 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.4.8 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.4.7 spec/sitehub/middleware/logging/log_stash_spec.rb
sitehub-0.4.6 spec/sitehub/middleware/logging/log_stash_spec.rb