Sha256: 2b1384db19f8bd473e47f9beb2a502d60c6697b861da0d7db608416922d52f2a

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 Bytes

Contents

# encoding: utf-8
require "logstash/devutils/rspec/spec_helper"
require "logstash/outputs/example"
require "logstash/codecs/plain"
require "logstash/event"

describe LogStash::Outputs::LogService do
  let(:sample_event) { LogStash::Event.new }
  let(:output) { LogStash::Outputs::Example.new }

  before do
    output.register
  end

  describe "receive message" do
    subject { output.receive(sample_event) }

    it "returns a string" do
      expect(subject).to eq("Event received")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logstash-output-logservice-0.4.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.3.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.2.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.1.0 spec/outputs/logservice_spec.rb