Sha256: af67a9f8af2daed2decbe3bb6560dcba7b7fcdfd76c0f7b2172084a41b234e7f

Contents?: true

Size: 496 Bytes

Versions: 8

Compression:

Stored size: 496 Bytes

Contents

# encoding: utf-8
require "logstash/outputs/null"
require "logstash/event"
require "logstash/devutils/rspec/spec_helper"

describe LogStash::Outputs::Null do
  context "#register" do
    it "should not raise an error" do
      expect {subject.register }.not_to raise_error
    end
  end

  context "#receive" do
    let(:event) { LogStash::Event.new({ "message" => "foobar" }) }

    it "should not raise an error" do
      expect {subject.receive(event)  }.not_to raise_error
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logstash-output-null-3.0.2 spec/outputs/null_spec.rb
logstash-output-null-3.0.1 spec/outputs/null_spec.rb
logstash-output-null-3.0.0 spec/outputs/null_spec.rb
logstash-output-null-2.0.4 spec/outputs/null_spec.rb
logstash-output-null-2.0.2 spec/outputs/null_spec.rb
logstash-output-null-2.0.1 spec/outputs/null_spec.rb
logstash-output-null-2.0.0 spec/outputs/null_spec.rb
logstash-output-null-1.0.1 spec/outputs/null_spec.rb