Skip to content

Commit 7eab58e

Browse files
committed
Handle LoadError for coveralls. It's optional dependency for testing.
1 parent 920ead3 commit 7eab58e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/helper.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# frozen_string_literal: true
22
$:.unshift File.expand_path("../../lib", __FILE__)
33

4-
require "coveralls"
5-
Coveralls.wear!
4+
begin
5+
gem "coveralls"
6+
require "coveralls"
7+
Coveralls.wear!
8+
rescue Gem::LoadError
9+
end
610

711
gem "minitest", "~> 5"
812
require "minitest/autorun"

0 commit comments

Comments
 (0)