From 2ff1e1e5dcb55ba196e3d95cb7af4c00707253b6 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 18 Jul 2017 23:33:48 +0200 Subject: [PATCH] Ensure Rackstash::Fields::Tags.merge! accepts nested procs --- spec/rackstash/fields/tags_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/rackstash/fields/tags_spec.rb b/spec/rackstash/fields/tags_spec.rb index 93e9d58..0d48e58 100644 --- a/spec/rackstash/fields/tags_spec.rb +++ b/spec/rackstash/fields/tags_spec.rb @@ -100,6 +100,9 @@ describe Rackstash::Fields::Tags do tags.merge! [-> { self }], scope: :foo expect(tags.to_a).to eql ['123', 'foo'] + + tags.merge! [-> { -> { self } }], scope: :foo + expect(tags.to_a).to eql ['123', 'foo'] end it 'flattens arguments' do