Sha256: 84baa5fb736222fc514c60bec991f9d36b846f5e5f4eef8218ac309f4baa413d

Contents?: true

Size: 344 Bytes

Versions: 9

Compression:

Stored size: 344 Bytes

Contents

class MockWorker < Struct.new(:klass, :id, :column)
  def self.perform(*args)
    new(*args).perform
  end

  def perform(*args)
    set_args(*args) unless args.empty?
  end

  def set_args(klass, id, column)
    self.klass, self.id, self.column = klass, id, column
  end
end

class MockSidekiqWorker < MockWorker
  include Sidekiq::Worker
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
carrierwave_backgrounder-0.4.1 spec/support/mock_worker.rb
carrierwave_backgrounder-0.4.0 spec/support/mock_worker.rb
carrierwave_backgrounder-0.3.0 spec/support/mock_worker.rb
carrierwave_backgrounder-0.2.2 spec/support/mock_worker.rb
carrierwave_backgrounder-0.2.1 spec/support/mock_worker.rb
carrierwave_backgrounder-0.2.0 spec/support/mock_worker.rb
carrierwave_backgrounder-0.1.5 spec/support/mock_worker.rb
carrierwave_backgrounder-0.1.4 spec/support/mock_worker.rb
carrierwave_backgrounder-0.1.3 spec/support/mock_worker.rb