Sha256: 29bd4f0c7c2c66f938645caba2a7912e1ae4129507f7c9151dbb554b6365e7e2
Contents?: true
Size: 725 Bytes
Versions: 6
Compression:
Stored size: 725 Bytes
Contents
describe Chicanery::Summary do describe '#failure?' do let(:state) { {servers: {} } } before do state.extend Chicanery::Summary end it 'should be false if there are no jobs' do state.should_not have_failure end it 'should be false if there are no failures' do state[:servers][:server1] = { job1: { last_build_status: :success }, job2: { last_build_status: :success } } state.should_not have_failure end it 'should be true if there is a single failure' do state[:servers][:server1] = { job1: { last_build_status: :failure }, job2: { last_build_status: :success } } state.should have_failure end end end
Version data entries
6 entries across 6 versions & 1 rubygems