aboutsummaryrefslogtreecommitdiffstats
path: root/test/support/queue_classic
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/queue_classic')
-rw-r--r--test/support/queue_classic/inline.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/support/queue_classic/inline.rb b/test/support/queue_classic/inline.rb
new file mode 100644
index 0000000000..5e9c295e01
--- /dev/null
+++ b/test/support/queue_classic/inline.rb
@@ -0,0 +1,11 @@
+require 'queue_classic'
+
+module QC
+ class Queue
+ def enqueue(method, *args)
+ receiver_str, _, message = method.rpartition('.')
+ receiver = eval(receiver_str)
+ receiver.send(message, *args)
+ end
+ end
+end