Sha256: bc393d9ccca22a0b391c90ea875f240994e556b8f1f0ba0fa5c32bcad99333fd

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

require 'spec_helper'

describe 'A status request with a TimeCheck', :type => :request 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
      allow(Time).to receive(:now).and_return(Time.gm(2013,8,23))
      expect(subject).to include_status_message('time', /^2013-08-23T00:00:00(?:.000)?Z$/)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rapporteur-3.4.0 spec/requests/time_check_spec.rb
rapporteur-3.3.0 spec/requests/time_check_spec.rb
rapporteur-3.2.0 spec/requests/time_check_spec.rb
rapporteur-3.1.0 spec/requests/time_check_spec.rb