Sha256: 0828633e23c0bc502119d503c8056b2b9b539a8f67bb776fa14d4a403c4eca3a
Contents?: true
Size: 470 Bytes
Versions: 5
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true RSpec.describe RSpeed::Observer, '.before' do let!(:now) { Time.local(2020) } let!(:clock) { class_double(RSpec::Core::Time, now: now) } let!(:example) { instance_double(RSpec::Core::Example, clock: clock) } it 'saves the current time' do allow(example).to receive(:update_inherited_metadata) described_class.before(example) expect(example).to have_received(:update_inherited_metadata).with(start_at: now) end end
Version data entries
5 entries across 5 versions & 1 rubygems