Sha256: e239d340aaee23d2f79bc1fb4283a2e4d62838654df67f216a2ed8f213ef2c9f
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
require 'spec_helper' require 'lograge' describe Lograge::Formatters::Logstash do let(:payload) do { custom: 'data', status: 200, method: 'GET', path: '/', controller: 'welcome', action: 'index' } end subject { described_class.new.call(payload) } it { should match(/"custom":"data"/) } it { should match(/"status":200/) } it { should match(/"method":"GET"/) } it { should match(/"path":"\/"/) } it { should match(/"controller":"welcome"/) } it { should match(/"action":"index"/) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lograge-0.3.0 | spec/formatters/logstash_spec.rb |