Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.66 kB
require File.expand_path(File.dirname(__FILE__) + '/test_helper')
# make sure the worlds not fallen from beneith us.
class ResqueTest < MiniTest::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
Jump to Line
Something went wrong with that request. Please try again.