mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Ensure Rackstash::Fields::Tags.merge! accepts nested procs
This commit is contained in:
parent
dc3d2b20bf
commit
2ff1e1e5dc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user