Sha256: 19971d04650b5c1269870194fbb880b81de937a890869ef9181d3117d82ba5b9

Contents?: true

Size: 667 Bytes

Versions: 3

Compression:

Stored size: 667 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'mocha'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'resque/resque'
require 'resque/empty_queue'
require 'resque/empty_queue_job'

class Test::Unit::TestCase
end

#fixture classes
class DefaultEmptyQueueJob < Resque::EmptyQueueJob
  wait_for_empty_queue :some_queue
  @queue = :empty_queue

  def self.perform(some_id, some_other_thing)
    puts "default empty queue perform"
  end
end

class QueuedJob
  @queue = :some_queue

  def self.perform(some_id, some_other_thing)
    sleep(2)
    puts "queued job perform"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
resque_empty_queue-0.0.3 test/test_helper.rb
resque_empty_queue-0.0.2 test/test_helper.rb
resque_empty_queue-0.0.1 test/test_helper.rb