diff options
author | Mike Perham <mperham@gmail.com> | 2014-05-20 08:35:12 -0700 |
---|---|---|
committer | Mike Perham <mperham@gmail.com> | 2014-05-20 08:35:12 -0700 |
commit | b49d3f105f765a2c6c440fad5303a2809942422a (patch) | |
tree | 6db1a67435477849e8d84471013c5ce7672daddf /test/support | |
parent | 23a87236cc36f3852c07aecad94ae540fa5de3c9 (diff) | |
parent | a8cfb3d042239d968ce0f45e983783f3042ef883 (diff) | |
download | rails-b49d3f105f765a2c6c440fad5303a2809942422a.tar.gz rails-b49d3f105f765a2c6c440fad5303a2809942422a.tar.bz2 rails-b49d3f105f765a2c6c440fad5303a2809942422a.zip |
merge master
Diffstat (limited to 'test/support')
-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 |