Sha256: fa0b1c324b81d1cd5f2038a216495f4f6f660e2680eda3c89842ff810045f5c3

Contents?: true

Size: 465 Bytes

Versions: 8

Compression:

Stored size: 465 Bytes

Contents

require 'delayed_job'

class Delayed::Job
  class DelayedJobFake < Array
    # fake out arel
    def order(*args)
      DelayedJobFake.new
    end

    def offset(*args)
      DelayedJobFake.new
    end

    def limit(*args)
      DelayedJobFake.new
    end
  end

  def self.where(*args)
    DelayedJobFake.new
  end

  def self.count(*args)
    0
  end

  def self.order(*args)
    DelayedJobFake.new
  end

  def self.find(*args)
    DelayedJobFake.new
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
delayed_job_web-1.2.10 test/support/delayed_job_fake.rb
better_delayed_job_web-1.3.12 test/support/delayed_job_fake.rb
better_delayed_job_web-1.3.11 test/support/delayed_job_fake.rb
better_delayed_job_web-1.3.5 test/support/delayed_job_fake.rb
better_delayed_job_web-1.3.3 test/support/delayed_job_fake.rb
better_delayed_job_web-1.3.2 test/support/delayed_job_fake.rb
better_delayed_job_web-1.3.1 test/support/delayed_job_fake.rb
delayed_job_web-1.2.9 test/support/delayed_job_fake.rb