<NME> noop.rb
<BEF> ADDFILE
<MSG> Converted grep tests to spec
Adding a failing test for feature request of LOGSTASH-599
Adding a failing test for add_field expected behaviour

<DFF> @@ -0,0 +1,22 @@
+require "test_utils"
+require "logstash/filters/noop"
+
+#NOOP filter is perfect for testing Filters::Base features with minimal overhead
+describe LogStash::Filters::NOOP do
+  extend LogStash::RSpec
+
+  describe "adding multiple value to one field" do
+   config <<-CONFIG
+   filter {
+    noop {
+       add_field => ["new_field", "new_value"]
+       add_field => ["new_field", "new_value_2"]
+     }
+   }
+   CONFIG
+
+   sample "" do
+     insist { subject["new_field"]} == ["new_value", "new_value_2"]
+   end
+ end
+end
\ No newline at end of file

Converted grep tests to spec Adding a failing test for feature request of LOGSTASH-599 Adding a failing test for add_field expected behaviour