Skip to content

Commit

Permalink
Use .zero?
Browse files Browse the repository at this point in the history
  • Loading branch information
wnuqui committed Jul 6, 2017
1 parent 47d7387 commit 33cbd1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/rspec/rspec_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def error_and_examples_not_run?
_parse_summary(results.summary)

!all_green? && \
example_count == 0 && failure_count == 0 && pending_count == 0
example_count.zero? && failure_count.zero? && pending_count.zero?
end

private
Expand Down

0 comments on commit 33cbd1d

Please sign in to comment.