Minor fixes after review

Fixes #1758
This commit is contained in:
Richard Pijnenburg 2014-09-22 19:20:19 +00:00 committed by Jordan Sissel
parent 6daeb22685
commit 79c4802e45
3 changed files with 4 additions and 5 deletions

View file

@ -22,7 +22,6 @@ module ConditionalFanciness
end
describe "conditionals in output" do
extend LogStash::RSpec
extend ConditionalFanciness
describe "simple" do

View file

@ -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)

View file

@ -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