Skip to content

Commit

Permalink
Handle LoadError for coveralls. It's optional dependency for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Oct 25, 2017
1 parent 920ead3 commit 7eab58e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/helper.rb
@@ -1,8 +1,12 @@
# frozen_string_literal: true
$:.unshift File.expand_path("../../lib", __FILE__)

require "coveralls"
Coveralls.wear!
begin
gem "coveralls"
require "coveralls"
Coveralls.wear!
rescue Gem::LoadError
end

gem "minitest", "~> 5"
require "minitest/autorun"
Expand Down

0 comments on commit 7eab58e

Please sign in to comment.