Sha256: 1b2f3819fa124c17047ce229e7038efac34fde4d8ddf368c5af4c5dd3a4b73e4

Contents?: true

Size: 797 Bytes

Versions: 4

Compression:

Stored size: 797 Bytes

Contents

# Fixture module declarations for backend detection testing

module GirlFriday
  class WorkQueue
  end
end

module Delayed
  class Job
    def self.column_names
      %w(id priority attempts handler queue last_error run_at locked_at failed_at locked_by created_at updated_at)
    end

    column_names.each do |column_name|
      define_method(column_name) { nil }
    end
  end
end

module Resque
end

module Qu
end

module Sidekiq
  module Client
  end

  module Worker
    def self.included(base)
      base.extend(ClassMethods)
    end

    module ClassMethods
      def sidekiq_options(opts = {})
      end

      def client_push(item)
      end
    end
  end
end

module QC
end

module SuckerPunch
  class Queue
  end
end

module Rails
  def self.logger
    @logger ||= Object.new
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
carrierwave_backgrounder-0.4.1 spec/support/backend_constants.rb
carrierwave_backgrounder-0.4.0 spec/support/backend_constants.rb
carrierwave_backgrounder-0.3.0 spec/support/backend_constants.rb
carrierwave_backgrounder-0.2.2 spec/support/backend_constants.rb