Skip to content

Commit

Permalink
Merge pull request #179 from otzy007/unless_if
Browse files Browse the repository at this point in the history
Convert unless if to just 1 if
  • Loading branch information
mhenrixon committed Apr 11, 2016
2 parents c366eba + 977dc60 commit 50ecb2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/sidekiq_meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
[m[:version], m[:operator]]
end

unless Sidekiq::VERSION.send(operator, version)
if version && operator && Sidekiq::VERSION.send(operator, version).nil?
skip('Skipped due to version check (requirement was that sidekiq version is ' \
"#{operator} #{version}; was #{Sidekiq::VERSION})")
end if version && operator
end
end

config.after(:each) do |example|
Expand Down

0 comments on commit 50ecb2c

Please sign in to comment.