Sha256: 56f2566ae9bad93cb5b61cda66610424f1c3997142a1a6b54263efcc5cb4c2d6
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
RSpec.describe DatabasePlumber do let(:report_class) { DatabasePlumber::Report } let(:current_example) { self } before(:each) do allow(report_class).to receive(:on) described_class.log current_example end context 'with no leaks' do before(:each) do described_class.inspect end it { expect(report_class).not_to have_received(:on) } end context 'with leaks' do let(:leaks) do { 'Foo' => 5 } end before(:each) do allow(DatabasePlumber::LeakFinder).to receive(:inspect) { leaks } described_class.inspect end it { expect(report_class).to have_received(:on).with(current_example, leaks) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
database_plumber-1.1.0 | spec/lib/database_plumber_spec.rb |
database_plumber-1.0.0 | spec/lib/database_plumber_spec.rb |