Sha256: 5fe1624f24c4972e4cb7660bbc89513f0dadffcae087329e50d8f2b7cb425564

Contents?: true

Size: 470 Bytes

Versions: 12

Compression:

Stored size: 470 Bytes

Contents

# encoding: utf-8
require "logstash/devutils/rspec/spec_helper"
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

12 entries across 12 versions & 1 rubygems

Version Path
logstash-output-logservice-0.16.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.15.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.14.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.13.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.12.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.11.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.10.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.9.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.8.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.7.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.6.0 spec/outputs/logservice_spec.rb
logstash-output-logservice-0.5.0 spec/outputs/logservice_spec.rb