lib/sucker_punch/testing/inline.rb in sucker_punch-2.1.2 vs lib/sucker_punch/testing/inline.rb in sucker_punch-3.0.0

- old
+ new

@@ -15,23 +15,23 @@ # # LogJob.perform_async(1, 2, 3) # # Include inline testing lib: # -# require 'sucker_punch/testing/inline" +# require 'sucker_punch/testing/inline' # # LogJob.perform_async(1, 2, 3) is now synchronous # LogJob.perform_in(1, 2, 3) is now synchronous # module SuckerPunch module Job module ClassMethods - def perform_async(*args) - self.new.perform(*args) + def perform_async(*args, **kwargs) + self.new.perform(*args, **kwargs) end - def perform_in(_, *args) - self.new.perform(*args) + def perform_in(_, *args, **kwargs) + self.new.perform(*args, **kwargs) end end end end