<NME> LOGSTASH-733.rb
<BEF> ADDFILE
<MSG> Add test case covering LOGSTASH-733

<DFF> @@ -0,0 +1,21 @@
+# This spec covers the question here:
+# https://logstash.jira.com/browse/LOGSTASH-733
+
+require "test_utils"
+
+describe "LOGSTASH-733" do
+  extend LogStash::RSpec
+  describe  "pipe-delimited fields" do
+    config <<-CONFIG
+      filter {
+        kv { field_split => "|" }
+      }
+    CONFIG
+
+    sample "field1=test|field2=another test|field3=test3" do
+      insist { subject["field1"] } == "test"
+      insist { subject["field2"] } == "another test"
+      insist { subject["field3"] } == "test3"
+    end
+  end
+end

Add test case covering LOGSTASH-733