nicksieger/ci_reporter — pull request #48 by seanwalbran (2011-12-14 22:22:58+00:00)
Title: fix nil to_xs with CI_CAPTURE=off

A fix for the below issue, seen when setting the environment variable CI_CAPTURE=off:

1) TestSuite xml should render successfully with CI_CAPTURE off
Failure/Error: xml = @suite.to_xml
NoMethodError:
undefined method `to_xs' for nil:NilClass
# ./lib/ci/reporter/test_suite.rb:89:in `to_xml'
# ./lib/ci/reporter/test_suite.rb:88:in `to_xml'
# ./lib/ci/reporter/test_suite.rb:84:in `to_xml'
# ./spec/ci/reporter/test_suite_spec.rb:71