Sha256: 3f282efcd4e485c04919e670fc648f29d2ef6fbb33959c1ecf08054e7a413c5f

Contents?: true

Size: 638 Bytes

Versions: 15

Compression:

Stored size: 638 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

# make sure the worlds not fallen from beneith us.
class ResqueTest < Test::Unit::TestCase
  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

15 entries across 15 versions & 3 rubygems

Version Path
onyx-resque-retry-0.1.5 test/resque_test.rb
onyx-resque-retry-0.1.4 test/resque_test.rb
onyx-resque-retry-0.1.3 test/resque_test.rb
onyx-resque-retry-0.1.2 test/resque_test.rb
onyx-resque-retry-0.1.1 test/resque_test.rb
onyx-resque-retry-0.1.0 test/resque_test.rb
resque-retry-0.1.0 test/resque_test.rb
kbaum-resque-retry-0.0.5.1 test/resque_test.rb
resque-retry-0.0.6 test/resque_test.rb
kbaum-resque-retry-0.0.5 test/resque_test.rb
resque-retry-0.0.5 test/resque_test.rb
resque-retry-0.0.4 test/resque_test.rb
resque-retry-0.0.3 test/resque_test.rb
resque-retry-0.0.2 test/resque_test.rb
resque-retry-0.0.1 test/resque_test.rb