Skip to content

Commit

Permalink
Merge pull request #120 from aprescott/no-runtime-activesupport
Browse files Browse the repository at this point in the history
Avoid methods from ActiveSupport, which is not required at runtime
  • Loading branch information
packrat386 authored Apr 6, 2017
2 parents fd6ffa7 + 782e41e commit 7efdfd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec/sidekiq/matchers/have_enqueued_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(klass)
end

def present?(arguments, options)
find_job(arguments, options).present?
!!find_job(arguments, options)
end

private
Expand Down Expand Up @@ -137,7 +137,7 @@ def failure_message_when_negated
def unwrapped_job_options(jobs)
jobs = jobs.values if jobs.is_a?(Hash)
jobs.flatten.map do |job|
job.slice('at')
{ 'at' => job['at'] }
end
end

Expand Down

0 comments on commit 7efdfd7

Please sign in to comment.