class RSpec::Sidekiq::Matchers::HaveEnqueuedJob
Overrides rspec-sidekiq `have_enqueued_job` matcher to deserialize arguments.
Private Instance Methods
job_arguments(hash)
click to toggle source
# File lib/sidekiq/global_id/rspec.rb, line 13 def job_arguments(hash) if hash.is_a?(Hash) args = hash['arguments'] || hash['args'] ActiveJob::Arguments.deserialize(args) end end
normalize_arguments(args)
click to toggle source
No need to normalize symbol keys, since we're able to handle them properly.
# File lib/sidekiq/global_id/rspec.rb, line 22 def normalize_arguments(args) args end