Sha256: 0f054d928dbcee7c0bc86b62b812104e8fcf8818f6f457f75c59ab3c215a7b82

Contents?: true

Size: 496 Bytes

Versions: 3

Compression:

Stored size: 496 Bytes

Contents

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

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

3 entries across 3 versions & 1 rubygems

Version Path
logstash-output-null-3.0.5 spec/outputs/null_spec.rb
logstash-output-null-3.0.4 spec/outputs/null_spec.rb
logstash-output-null-3.0.3 spec/outputs/null_spec.rb