diff options
author | Cristian Bica <cristian.bica@gmail.com> | 2014-05-20 00:01:56 +0300 |
---|---|---|
committer | Cristian Bica <cristian.bica@gmail.com> | 2014-05-20 00:01:56 +0300 |
commit | 5cad2c1b8aa1139ba3de45b3ce26b9d5c9931f6c (patch) | |
tree | 63fd313e325270847760c81e82369d9286a57f5e /test/support/queue_classic | |
parent | ac930b8077a7f494d531b9bb34aa431870fb0a3f (diff) | |
download | rails-5cad2c1b8aa1139ba3de45b3ce26b9d5c9931f6c.tar.gz rails-5cad2c1b8aa1139ba3de45b3ce26b9d5c9931f6c.tar.bz2 rails-5cad2c1b8aa1139ba3de45b3ce26b9d5c9931f6c.zip |
Implemented queue_classic adapter
Diffstat (limited to 'test/support/queue_classic')
-rw-r--r-- | test/support/queue_classic/inline.rb | 11 |
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 |