mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
parent
6daeb22685
commit
79c4802e45
3 changed files with 4 additions and 5 deletions
|
@ -22,7 +22,6 @@ module ConditionalFanciness
|
|||
end
|
||||
|
||||
describe "conditionals in output" do
|
||||
extend LogStash::RSpec
|
||||
extend ConditionalFanciness
|
||||
|
||||
describe "simple" do
|
||||
|
|
|
@ -14,7 +14,7 @@ module LogStashHelper
|
|||
|
||||
def tags(*tags)
|
||||
let(:default_tags) { tags }
|
||||
puts "Setting default tags: #{@default_tags}"
|
||||
puts "Setting default tags: #{tags}"
|
||||
end
|
||||
|
||||
def sample(sample_event, &block)
|
||||
|
|
|
@ -42,17 +42,17 @@ describe LogStash::Json do
|
|||
|
||||
context "jruby serialize" do
|
||||
it "should respond to dump and serialize object" do
|
||||
expect(JrJackson::Json).to receive(:dump).with(string).and_call_original
|
||||
expect(JrJackson::Json).to receive(:dump).with(string).and_call_original
|
||||
expect(LogStash::Json.dump(string)).to eql(json_string)
|
||||
end
|
||||
|
||||
it "should call JrJackson::Raw.generate for Hash" do
|
||||
#expect(JrJackson::Raw).to receive(:generate).with(hash).and_call_original
|
||||
expect(JrJackson::Raw).to receive(:generate).with(hash).and_call_original
|
||||
expect(LogStash::Json.dump(hash)).to eql(json_hash)
|
||||
end
|
||||
|
||||
it "should call JrJackson::Raw.generate for Array" do
|
||||
#expect(JrJackson::Raw).to receive(:generate).with(array).and_call_original
|
||||
expect(JrJackson::Raw).to receive(:generate).with(array).and_call_original
|
||||
expect(LogStash::Json.dump(array)).to eql(json_array)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue