Sha256: 7023a6d675a9c479fb208a5d6afee6572a55a94051b10d98f3b6819eb13add16

Contents?: true

Size: 342 Bytes

Versions: 28

Compression:

Stored size: 342 Bytes

Contents

require 'logstash-logger'

describe LogStashLogger::Formatter::JsonLines do
  include_context "formatter"

  it "outputs in JSON format" do
    json_message = JSON.parse(formatted_message)
    expect(json_message["message"]).to eq(message)
  end

  it "terminates with a line break" do
    expect(formatted_message[-1]).to eq("\n")
  end
end

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
logstash-logger-p-0.26.1 spec/formatter/json_lines_spec.rb
logstash-logger-yajl-0.27.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.26.1 spec/formatter/json_lines_spec.rb
logstash-logger-0.26.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.25.1 spec/formatter/json_lines_spec.rb
logstash-logger-0.25.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.24.1 spec/formatter/json_lines_spec.rb
logstash-logger-0.24.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.23.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.22.1 spec/formatter/json_lines_spec.rb
logstash-logger-0.22.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.21.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.20.1 spec/formatter/json_lines_spec.rb
logstash-logger-0.20.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.19.2 spec/formatter/json_lines_spec.rb
logstash-logger-0.19.1 spec/formatter/json_lines_spec.rb
logstash-logger-0.19.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.18.1 spec/formatter/json_lines_spec.rb
logstash-logger-0.18.0 spec/formatter/json_lines_spec.rb
logstash-logger-0.17.0 spec/formatter/json_lines_spec.rb