aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/sneakers/inline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/support/sneakers/inline.rb')
-rw-r--r--activejob/test/support/sneakers/inline.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/activejob/test/support/sneakers/inline.rb b/activejob/test/support/sneakers/inline.rb
new file mode 100644
index 0000000000..16d9b830fa
--- /dev/null
+++ b/activejob/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