module ArgsHelper

Public Instance Methods

match_args(expected_args, args) click to toggle source
# File lib/activejob_spec/matchers.rb, line 10
def match_args(expected_args, args)
  arg_list_matcher = RSpec::Mocks::ArgumentListMatcher.new(expected_args)
  arg_list_matcher.args_match?(args)
end
match_job(job, klass) click to toggle source
# File lib/activejob_spec/matchers.rb, line 6
def match_job(job, klass)
  job.fetch(:job) == klass
end