Sha256: 5268c87760c58a474556473a00a169b4bc720667701514bf52b46b25598232d0
Contents?: true
Size: 397 Bytes
Versions: 4
Compression:
Stored size: 397 Bytes
Contents
shared_examples 'a job' do |activity_type| let(:activity) { create(activity_type) } it 'runs the activity' do expect { described_class.perform(activity.id) }.not_to raise_error end it 'causes activity timestamps to be correctly modified' do described_class.perform(activity.id) activity.reload expect(activity.end_time).to be_within(1.second).of(DateTime.now) end end
Version data entries
4 entries across 4 versions & 1 rubygems