1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test/jobs/multiple_kwargs_job.rb
Sharang Dashputre 14e278f876 Make assert_<enqueued|performed>_with() compare hashes ignoring order of keys
The test helpers now treat `{ a: 1, b: 2 }` and `{ b: 2, a: 1 }` as equals
2018-09-21 00:09:40 +05:30

9 lines
242 B
Ruby

# frozen_string_literal: true
require_relative "../support/job_buffer"
class MultipleKwargsJob < ActiveJob::Base
def perform(argument1:, argument2:)
JobBuffer.add("Job with argument1: #{argument1}, argument2: #{argument2}")
end
end