mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Don't stub FilterChain#to_s in test of #inspect
That way, we can also ensure that the nested locking works correctly without any deadlock.
This commit is contained in:
parent
cbcfec88a8
commit
597f605e06
@ -383,7 +383,9 @@ describe Rackstash::FilterChain do
|
||||
|
||||
describe '#inspect' do
|
||||
it 'formats the object' do
|
||||
expect(filter_chain).to receive(:to_s).and_return('["<filter>"]')
|
||||
filter_chain << filter
|
||||
|
||||
expect(filter).to receive(:inspect).and_return('"<filter>"')
|
||||
expect(filter_chain.inspect).to(
|
||||
match %r{\A#<Rackstash::FilterChain:0x[a-f0-9]+ \["<filter>"\]>\z}
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user