mirror of
https://github.com/meineerde/rackstash.git
synced 2025-12-19 23:11:11 +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
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user