Sha256: 5ce27da04261c767615f6b9c17bc4708796418622caade3345f40a56bf578890
Contents?: true
Size: 634 Bytes
Versions: 4
Compression:
Stored size: 634 Bytes
Contents
require 'spec_helper' describe 'A check calling #halt!', :type => :request 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rapporteur-3.4.0 | spec/requests/halt_spec.rb |
rapporteur-3.3.0 | spec/requests/halt_spec.rb |
rapporteur-3.2.0 | spec/requests/halt_spec.rb |
rapporteur-3.1.0 | spec/requests/halt_spec.rb |