ci_reporter 1.6.8 → 1.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,7 @@
1
+ == 1.6.9 (12/14/11)
2
+
3
+ - #49: fix nil to_xs with CI_CAPTURE=off (thanks Sean Walbran)
4
+
1
5
  == 1.6.8 (12/13/11)
2
6
 
3
7
  - #47: Fix regression - don't pull test/unit in unnecessarily
@@ -86,10 +86,10 @@ module CI
86
86
  tc.to_xml(builder)
87
87
  end
88
88
  builder.tag! "system-out" do
89
- builder.text! self.stdout
89
+ builder.text!(self.stdout || '' )
90
90
  end
91
91
  builder.tag! "system-err" do
92
- builder.text! self.stderr
92
+ builder.text!(self.stderr || '' )
93
93
  end
94
94
  end
95
95
  end
@@ -1,5 +1,5 @@
1
1
  module CI
2
2
  module Reporter
3
- VERSION = "1.6.8"
3
+ VERSION = "1.6.9"
4
4
  end
5
5
  end
@@ -53,6 +53,7 @@ end
53
53
 
54
54
  describe "TestSuite xml" do
55
55
  before(:each) do
56
+ ENV['CI_CAPTURE'] = nil
56
57
  @suite = CI::Reporter::TestSuite.new("example suite")
57
58
  @suite.assertions = 11
58
59
  begin
@@ -62,6 +63,14 @@ describe "TestSuite xml" do
62
63
  end
63
64
  end
64
65
 
66
+ it "should render successfully with CI_CAPTURE off" do
67
+ ENV['CI_CAPTURE'] = 'off'
68
+ @suite.start
69
+ @suite.testcases << CI::Reporter::TestCase.new("example test")
70
+ @suite.finish
71
+ xml = @suite.to_xml
72
+ end
73
+
65
74
  it "should contain Ant/JUnit-formatted description of entire suite" do
66
75
  failure = mock("failure")
67
76
  failure.stub!(:failure?).and_return true
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ci_reporter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.6.8
5
+ version: 1.6.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Sieger
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-14 00:00:00 Z
13
+ date: 2011-12-15 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder