Skip to content
Browse files

Merge commit 'jarib/master'

  • Loading branch information...
2 parents 48fd0c7 + ad6d666 commit 3f402fe44dc358b7ec5d6b41215c23daddde1823 @nicksieger nicksieger committed Nov 15, 2008
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/ci/reporter/test_suite.rb
View
8 lib/ci/reporter/test_suite.rb
@@ -65,8 +65,12 @@ def finish
# Creates the xml builder instance used to create the report xml document.
def create_builder
- require 'rubygems'
- gem 'builder'
+ begin
+ require 'rubygems'
+ gem 'builder'
+ rescue LoadError
+ end
+
require 'builder'
# :escape_attrs is obsolete in a newer version, but should do no harm
Builder::XmlMarkup.new(:indent => 2, :escape_attrs => true)

0 comments on commit 3f402fe

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