Sha256: 3d94ef606617bfeba14ee5781d14cfb59969e07b91513fc9b219a93833965e05

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

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

describe LogStash::Outputs::Loganalytics do
  let(:sample_event) { LogStash::Event.new }
  let(:output) { LogStash::Outputs::Loganalytics.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

1 entries across 1 versions & 1 rubygems

Version Path
logstash-output-loganalytics-0.1.0 spec/outputs/loganalytics_spec.rb