Sha256: ecd4b4fe90dd1b32272290067203c07eabcb69468544d882bf049fbfbfa2778f

Contents?: true

Size: 335 Bytes

Versions: 9

Compression:

Stored size: 335 Bytes

Contents

module WorkerHelper
  def worker(run_at = Time.now)
    double("resque worker", id: SecureRandom.uuid, job: { "queue" => "whatever",
                                                          "run_at" => run_at.to_s,
                                                          "payload" => { "class" => "Foo", "args" => [] } })
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
resqutils-1.3.4 spec/support/worker_helper.rb
resqutils-1.3.3 spec/support/worker_helper.rb
resqutils-1.3.2 spec/support/worker_helper.rb
resqutils-1.3.1 spec/support/worker_helper.rb
resqutils-1.3.0 spec/support/worker_helper.rb
resqutils-1.2.1 spec/support/worker_helper.rb
resqutils-1.2.0 spec/support/worker_helper.rb
resqutils-1.1.1 spec/support/worker_helper.rb
resqutils-1.1.0 spec/support/worker_helper.rb