Skip to content

Commit 79c4802

Browse files
Richard Pijnenburgjordansissel
authored andcommitted
Minor fixes after review
Fixes #1758
1 parent 6daeb22 commit 79c4802

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

spec/core/conditionals_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def conditional(expression, &block)
2222
end
2323

2424
describe "conditionals in output" do
25-
extend LogStash::RSpec
2625
extend ConditionalFanciness
2726

2827
describe "simple" do

spec/logstash_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def type(default_type)
1414

1515
def tags(*tags)
1616
let(:default_tags) { tags }
17-
puts "Setting default tags: #{@default_tags}"
17+
puts "Setting default tags: #{tags}"
1818
end
1919

2020
def sample(sample_event, &block)

spec/util/json_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@
4242

4343
context "jruby serialize" do
4444
it "should respond to dump and serialize object" do
45-
expect(JrJackson::Json).to receive(:dump).with(string).and_call_original
45+
expect(JrJackson::Json).to receive(:dump).with(string).and_call_original
4646
expect(LogStash::Json.dump(string)).to eql(json_string)
4747
end
4848

4949
it "should call JrJackson::Raw.generate for Hash" do
50-
#expect(JrJackson::Raw).to receive(:generate).with(hash).and_call_original
50+
expect(JrJackson::Raw).to receive(:generate).with(hash).and_call_original
5151
expect(LogStash::Json.dump(hash)).to eql(json_hash)
5252
end
5353

5454
it "should call JrJackson::Raw.generate for Array" do
55-
#expect(JrJackson::Raw).to receive(:generate).with(array).and_call_original
55+
expect(JrJackson::Raw).to receive(:generate).with(array).and_call_original
5656
expect(LogStash::Json.dump(array)).to eql(json_array)
5757
end
5858

0 commit comments

Comments
 (0)