Sha256: 6d48f23393ad73b6cc1d564aa1703c16e95abe4f59895b4d61b811b6db0ee1f5
Contents?: true
Size: 421 Bytes
Versions: 30
Compression:
Stored size: 421 Bytes
Contents
module MockDefinition class << self def create(queue=nil) definition = Module.new do extend Taskinator::Definition define_process :foo_hash do # empty on purpose end end definition.queue = queue # create a constant, so that the mock definition isn't anonymous Object.const_set("Mock#{SecureRandom.hex}Definition", definition) end end end
Version data entries
30 entries across 30 versions & 1 rubygems