spec/inputs/elasticsearch_spec.rb in logstash-input-elasticsearch-4.3.0 vs spec/inputs/elasticsearch_spec.rb in logstash-input-elasticsearch-4.3.1
- old
+ new
@@ -123,10 +123,10 @@
plugin.run([])
end
end
context 'without slices directive' do
- let(:config) { super().except('slices') }
+ let(:config) { super.tap { |h| h.delete('slices') } }
it 'runs just one slice' do
expect(plugin).to receive(:do_run_slice).with(duck_type(:<<))
expect(Thread).to_not receive(:new)
plugin.register