diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-05-19 23:23:02 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-05-19 23:23:02 -0500 |
commit | 3a233d087a4221ad8822f70e2ae289ef7e543985 (patch) | |
tree | aa77d53751dbab75256b7c6ba20fbd1bb323e47f /test/support/sneakers/inline.rb | |
parent | c6925f52d07a01c2b729a70bac60b11f7e514d76 (diff) | |
parent | 1b71fe59b8cd6c7347729703c064b64866b3502e (diff) | |
download | rails-3a233d087a4221ad8822f70e2ae289ef7e543985.tar.gz rails-3a233d087a4221ad8822f70e2ae289ef7e543985.tar.bz2 rails-3a233d087a4221ad8822f70e2ae289ef7e543985.zip |
Merge pull request #37 from Aesthetikx/master
Add Sneakers wrapper
Diffstat (limited to 'test/support/sneakers/inline.rb')
-rw-r--r-- | test/support/sneakers/inline.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/support/sneakers/inline.rb b/test/support/sneakers/inline.rb new file mode 100644 index 0000000000..16d9b830fa --- /dev/null +++ b/test/support/sneakers/inline.rb @@ -0,0 +1,12 @@ +require 'sneakers' + +module Sneakers + module Worker + module ClassMethods + def enqueue(msg) + worker = self.new(nil, nil, {}) + worker.work(*msg) + end + end + end +end |