1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-01-31 17:27:13 +00:00

Drop the default :each on before blocks in rspec

This commit is contained in:
Holger Just 2017-02-02 00:23:31 +01:00
parent 0465b11344
commit 8768630dbb

View File

@ -121,7 +121,7 @@ describe Rackstash::Logger do
end
}
before(:each) do
before do
class_double('Rackstash::Message').as_stubbed_const.tap do |klass|
expect(klass).to receive(:new) { |msg, **kwargs| { message: msg, **kwargs } }
.at_least(:once)