Skip to content

Commit

Permalink
Merge pull request #152 from lanej/fix-blank
Browse files Browse the repository at this point in the history
remove usage of Integer#blank?
  • Loading branch information
packrat386 authored Apr 20, 2018
2 parents c4fabcc + 74b3c76 commit 1213531
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 @@ -25,12 +25,12 @@ def matches?(option, value)
private

def at_evaluator(value)
return false if job['at'].blank?
return false if job['at'].to_s.empty?
value.to_time.to_s == Time.at(job['at']).to_s
end

def in_evaluator(value)
return false if job['at'].blank?
return false if job['at'].to_s.empty?
(Time.now + value).to_s == Time.at(job['at']).to_s
end
end
Expand Down

0 comments on commit 1213531

Please sign in to comment.