From 14e278f876bb0def5378db78f53024c2a7553fa0 Mon Sep 17 00:00:00 2001 From: Sharang Dashputre Date: Wed, 12 Sep 2018 10:52:17 +0530 Subject: Make `assert__with()` compare hashes ignoring order of keys The test helpers now treat `{ a: 1, b: 2 }` and `{ b: 2, a: 1 }` as equals --- activejob/test/jobs/multiple_kwargs_job.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 activejob/test/jobs/multiple_kwargs_job.rb (limited to 'activejob/test/jobs') diff --git a/activejob/test/jobs/multiple_kwargs_job.rb b/activejob/test/jobs/multiple_kwargs_job.rb new file mode 100644 index 0000000000..b355c4ce1a --- /dev/null +++ b/activejob/test/jobs/multiple_kwargs_job.rb @@ -0,0 +1,9 @@ +# 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 -- cgit v1.2.3