Sha256: 8c349220236491ac458a0f0ad3b0614310cd01d5a434b3857151e801b3b56746

Contents?: true

Size: 287 Bytes

Versions: 11

Compression:

Stored size: 287 Bytes

Contents

require 'rails_helper'

RSpec.describe JobFailures do
  describe '#job' do
    before do
      allow(RocketJob::Job).to receive(:find)
    end

    it 'looks up the job' do
      described_class.new(42).job
      expect(RocketJob::Job).to have_received(:find).with(42)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rocketjob_mission_control-3.0.0.rc1 spec/models/job_failures_spec.rb
rocketjob_mission_control-2.1.1 spec/models/job_failures_spec.rb
rocketjob_mission_control-2.1.0 spec/models/job_failures_spec.rb
rocketjob_mission_control-2.0.0 spec/models/job_failures_spec.rb
rocketjob_mission_control-2.0.0.rc2 spec/models/job_failures_spec.rb
rocketjob_mission_control-2.0.0.rc1 spec/models/job_failures_spec.rb
rocketjob_mission_control-1.2.4 spec/models/job_failures_spec.rb
rocketjob_mission_control-1.2.3 spec/models/job_failures_spec.rb
rocketjob_mission_control-1.2.2 spec/models/job_failures_spec.rb
rocketjob_mission_control-1.2.1 spec/models/job_failures_spec.rb
rocketjob_mission_control-1.2.0 spec/models/job_failures_spec.rb