1
0
mirror of https://github.com/meineerde/rackstash.git synced 2025-12-19 15:01:12 +00:00

Ensure Rackstash::Fields::Tags.merge! accepts nested procs

This commit is contained in:
Holger Just 2017-07-18 23:33:48 +02:00
parent dc3d2b20bf
commit 2ff1e1e5dc

View File

@ -100,6 +100,9 @@ describe Rackstash::Fields::Tags do
tags.merge! [-> { self }], scope: :foo tags.merge! [-> { self }], scope: :foo
expect(tags.to_a).to eql ['123', 'foo'] expect(tags.to_a).to eql ['123', 'foo']
tags.merge! [-> { -> { self } }], scope: :foo
expect(tags.to_a).to eql ['123', 'foo']
end end
it 'flattens arguments' do it 'flattens arguments' do