Sha256: f7b7503312c217fa6cc7f6394261d366b29f7413ed15b79a03a150a74a4469b2
Contents?: true
Size: 615 Bytes
Versions: 6
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' describe 'A check calling #halt!' do before do Rapporteur.add_check { |checker| checker.add_message(:one, 1) } Rapporteur.add_check { |checker| checker.add_message(:two, 2).halt! } Rapporteur.add_check { |checker| checker.add_message(:three, 3) } end subject { get(status_path) ; JSON.parse(response.body) } it 'runs the first check' do expect(subject).to include('one') end it 'runs the second check' do expect(subject).to include('two') end it 'does not run any checks after #halt! is called' do expect(subject).not_to include('three') end end
Version data entries
6 entries across 6 versions & 1 rubygems