aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/jobs/kwargs_job.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/jobs/kwargs_job.rb')
-rw-r--r--activejob/test/jobs/kwargs_job.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activejob/test/jobs/kwargs_job.rb b/activejob/test/jobs/kwargs_job.rb
new file mode 100644
index 0000000000..2df17d15ae
--- /dev/null
+++ b/activejob/test/jobs/kwargs_job.rb
@@ -0,0 +1,7 @@
+require_relative '../support/job_buffer'
+
+class KwargsJob < ActiveJob::Base
+ def perform(argument: 1)
+ JobBuffer.add("Job with argument: #{argument}")
+ end
+end