Sha256: bcdd40ed44586ef7d131d43a4961095cbe13dbf469ee6a68444b448c58ca52b7
Contents?: true
Size: 485 Bytes
Versions: 3
Compression:
Stored size: 485 Bytes
Contents
require 'spec_helper' describe 'A status request with a RevisionCheck' do before do Rapporteur.add_check(Rapporteur::Checks::RevisionCheck) end subject { get(status_path) ; response } it_behaves_like 'a successful status response' context 'the response payload' do subject { get(status_path) ; JSON.parse(response.body) } it 'contains the current application revision' do expect(subject.fetch('revision')).to(match(/^[a-f0-9]{40}$/)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rapporteur-2.1.0 | spec/requests/revision_check_spec.rb |
rapporteur-2.0.1 | spec/requests/revision_check_spec.rb |
rapporteur-2.0.0 | spec/requests/revision_check_spec.rb |