Sha256: 3aa4b66021fb7d87d14a8df287cd6aadbc6620078666380d678a503b5f304bf2
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
# encoding: utf-8 require "logstash/devutils/rspec/spec_helper" require "logstash/codecs/plain" require "logstash/event" describe LogStash::Outputs::Cls 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-output-cls-0.1.5 | spec/outputs/cls_spec.rb |