Sha256: 4cefeb8b3a34a603863466a919ceb4f99311393797331533bdaf4d6965cd3b86

Contents?: true

Size: 397 Bytes

Versions: 9

Compression:

Stored size: 397 Bytes

Contents

require 'rails_helper'

RSpec.describe Delayed::StatusJob do
  it "recreates itself on success" do
    Delayed::Worker.delay_jobs = true
    Delayed::StatusJob.new.perform
    expect(Delayed::Job.count).to eq(1)
    expect(Delayed::Job.first.handler).to match /Delayed::StatusJob/
    expect(Delayed::Job.first.run_at.utc.to_i).to be_within(5).of(
      1.minute.from_now.utc.to_i
    )
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mail_manager-3.2.25.1 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.22.0 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.7 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.6 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.5 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.4 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.2 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.1 spec/test_app/spec/models/delayed/status_job_spec.rb
mail_manager-3.2.0 spec/test_app/spec/models/delayed/status_job_spec.rb