spec/out_grepcounter_spec.rb in fluent-plugin-grepcounter-0.4.0 vs spec/out_grepcounter_spec.rb in fluent-plugin-grepcounter-0.4.1

- old
+ new

@@ -279,9 +279,18 @@ Fluent::Engine.should_receive(:emit).with("foo.#{tag}", time, expected) end it { emit } end + context 'remove_tag_prefix' do + let(:config) { CONFIG + %[add_tag_prefix foo\nremove_tag_prefix syslog] } + before do + Fluent::Engine.stub(:now).and_return(time) + Fluent::Engine.should_receive(:emit).with("foo.host1", time, expected) + end + it { emit } + end + context 'output_with_joined_delimiter (obsolete)' do # \\n shall be \n in config file let(:config) { CONFIG + %[output_with_joined_delimiter \\n] } before do Fluent::Engine.stub(:now).and_return(time)