spec/models/rspeed/observer/after_suite_spec.rb in rspeed-0.6.0 vs spec/models/rspeed/observer/after_suite_spec.rb in rspeed-0.7.0
- old
+ new
@@ -14,17 +14,25 @@
end
context 'when all specs finished' do
before do
allow(RSpeed::Redis).to receive(:specs_finished?).and_return(true)
+ allow(RSpeed::Redis).to receive(:version_the_result)
allow(RSpeed::Splitter).to receive(:consolidate)
+ allow(RSpeed::Reporter).to receive(:call)
allow(RSpeed::Redis).to receive(:clean)
end
it 'consolidates profiles' do
described_class.after_suite
expect(RSpeed::Splitter).to have_received(:consolidate)
+ end
+
+ it 'reports' do
+ described_class.after_suite
+
+ expect(RSpeed::Reporter).to have_received(:call)
end
it 'destroyes pipe finished flag keys' do
described_class.after_suite