Sha256: 6123c85c68f502c351191d05eaae73cbde9f2654e2dcb22a1bc3cdaf4b4005ce
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
require 'spec_helper' describe 'A status request with a TimeCheck' do before do Rapporteur.add_check(Rapporteur::Checks::TimeCheck) end subject { get(status_path) ; response } it_behaves_like 'a successful status response' context 'the response payload' do it 'contains the time in ISO8601' do Time.stub(:now).and_return(Time.gm(2013,8,23)) expect(subject).to include_status_message('time', Time.gm(2013,8,23).iso8601) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rapporteur-3.0.2 | spec/requests/time_check_spec.rb |
rapporteur-3.0.1 | spec/requests/time_check_spec.rb |
rapporteur-3.0.0 | spec/requests/time_check_spec.rb |