Sha256: 2c73af54100a406b6f3ccc92d87ad2643f09e0db68f7f8035514639349688691

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

require 'test_helper'

# make sure the worlds not fallen from beneith us.
class ResqueTest < Minitest::Test
  def test_resque_version
    major, minor, patch = Resque::Version.split('.')
    assert_equal 1, major.to_i, 'major version does not match'
    assert_operator minor.to_i, :>=, 8, 'minor version is too low'
  end

  def test_good_job
    clean_perform_job(GoodJob, 1234, { :cats => :maiow }, [true, false, false])

    assert_equal 0, Resque.info[:failed], 'failed jobs'
    assert_equal 1, Resque.info[:processed], 'processed job'
    assert_equal 0, Resque.delayed_queue_schedule_size
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
resque-retry-1.5.3 test/resque_test.rb
resque-retry-1.5.2 test/resque_test.rb
resque-retry-1.5.0 test/resque_test.rb
resque-retry-1.4.0 test/resque_test.rb