Sha256: 5326f04fa64fc80c65ab84bb0655c695d5e9de6f5c174d6c2dd2b83133e5544d

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

# encoding: utf-8
require "logstash/devutils/rspec/spec_helper"
require "logstash/outputs/websocket_topics"

describe "output/websocket_topics" do

  subject(:output) { LogStash::Outputs::WebSocket.new }

  it "should register" do
    expect {output.register}.to_not raise_error
  end

  it "should receive a simple message with a topic" do
    output.register()
    expect {output.receive({ "topic" => "blah" })}.to_not raise_error
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
logstash-output-websocket_topics-2.1.10 spec/outputs/websocket_topics_spec.rb
logstash-output-websocket_topics-2.1.9 spec/outputs/websocket_topics_spec.rb