diff options
author | utilum <oz@utilum.com> | 2018-06-29 12:12:15 +0200 |
---|---|---|
committer | utilum <oz@utilum.com> | 2018-06-30 10:20:45 +0200 |
commit | e862ee86b736f222d52202767f1d060defe0c766 (patch) | |
tree | 9ec9ad1673a1b12ace4b845ce972a256f1880657 /activejob/test/support/sneakers | |
parent | d1062732aee590dd0c557dd486356864b32b34f0 (diff) | |
download | rails-e862ee86b736f222d52202767f1d060defe0c766.tar.gz rails-e862ee86b736f222d52202767f1d060defe0c766.tar.bz2 rails-e862ee86b736f222d52202767f1d060defe0c766.zip |
Fix Ruby warnings tickled by the test suite
Diffstat (limited to 'activejob/test/support/sneakers')
-rw-r--r-- | activejob/test/support/sneakers/inline.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activejob/test/support/sneakers/inline.rb b/activejob/test/support/sneakers/inline.rb index 92b69ee3bc..e772c68c6e 100644 --- a/activejob/test/support/sneakers/inline.rb +++ b/activejob/test/support/sneakers/inline.rb @@ -1,11 +1,12 @@ # frozen_string_literal: true require "sneakers" +require "active_support/core_ext/module/redefine_method" module Sneakers module Worker module ClassMethods - def enqueue(msg) + redefine_method(:enqueue) do |msg| worker = new(nil, nil, {}) worker.work(*msg) end |