Skip to content
Browse files

Make test runnable even if simplecov is not installed

  • Loading branch information...
1 parent fff089c commit b50dcf5a528b6739b937f006c3ead6aaa36716e3 @nahi committed
Showing with 7 additions and 4 deletions.
  1. +7 −4 test/helper.rb
View
11 test/helper.rb
@@ -1,9 +1,12 @@
# -*- encoding: utf-8 -*-
require 'test/unit'
-require 'simplecov'
-require 'simplecov-rcov'
-SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
-SimpleCov.start
+begin
+ require 'simplecov'
+ require 'simplecov-rcov'
+ SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
+ SimpleCov.start
+rescue LoadError
+end
require 'httpclient'
require 'webrick'

0 comments on commit b50dcf5

Please sign in to comment.
Something went wrong with that request. Please try again.