Sha256: b041d86d7a08a32d61a95348eb66abb8f1ce865c22537500b39cd07821965cea

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

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

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

3 entries across 3 versions & 1 rubygems

Version Path
logstash-output-mongodb_upsert_custom-0.2.1 spec/outputs/mongodb_upsert_custom_spec.rb
logstash-output-mongodb_upsert_custom-0.2.0 spec/outputs/mongodb_upsert_custom_spec.rb
logstash-output-mongodb_upsert_custom-0.1.0 spec/outputs/mongodb_upsert_custom_spec.rb