spec/support/test_queue.rb in taskinator-0.0.15 vs spec/support/test_queue.rb in taskinator-0.0.16
- old
+ new
@@ -1,25 +1,31 @@
module Taskinator
module Queues
def self.create_test_queue_adapter(config={})
- TestQueueAdapter::new()
+ TestQueueAdapter.new
end
class TestQueueAdapter
+ attr_reader :creates
attr_reader :processes
attr_reader :tasks
attr_reader :jobs
def initialize
clear
end
def clear
+ @creates = []
@processes = []
@tasks = []
@jobs = []
+ end
+
+ def enqueue_create_process(definition, uuid, args)
+ @creates << [definition, uuid, args]
end
def enqueue_process(process)
@processes << process
end