Sha256: 68eca11643daa788d9ff8c836aea6baa60fc33fd3b767e903feeb01230243981

Contents?: true

Size: 818 Bytes

Versions: 3

Compression:

Stored size: 818 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 = {})
        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 ||= Logger.new(STDOUT)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
carrierwave_backgrounder-0.4.3 spec/support/backend_constants.rb
carrierwave_backgrounder_revived-1.0.0 spec/support/backend_constants.rb
carrierwave_backgrounder-0.4.2 spec/support/backend_constants.rb