ci_reporter 1.5.2 → 1.5.3

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.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.5.3
2
+
3
+ - Compatibility with latest RSpec (1.2.4); (Paul Boone)
4
+
1
5
  == 1.5.2
2
6
 
3
7
  - Compatibility with latest RSpec (1.1.11 or so); use example
data/Rakefile CHANGED
@@ -42,13 +42,14 @@ Spec::Rake::SpecTask.new do |t|
42
42
  end
43
43
 
44
44
  Spec::Rake::SpecTask.new("spec:rcov") do |t|
45
+ t.rcov_opts << '--exclude gems/*'
45
46
  t.rcov = true
46
47
  end
47
48
  # so we don't confuse autotest
48
49
  RCov::VerifyTask.new(:rcov) do |t|
49
- # Can't get threshold up to 100 until the RSpec < 1.0 compatibility
50
+ # Can't get threshold up to 100 unless RSpec backwards compatibility
50
51
  # code is dropped
51
- t.threshold = 99
52
+ t.threshold = 98
52
53
  t.require_exact_threshold = false
53
54
  end
54
55
  task "spec:rcov" do
@@ -1,4 +1,4 @@
1
- # (c) Copyright 2006-2008 Nick Sieger <nicksieger@gmail.com>
1
+ # (c) Copyright 2006-2009 Nick Sieger <nicksieger@gmail.com>
2
2
  # See the file LICENSE.txt included with the distribution for
3
3
  # software license details.
4
4
 
@@ -53,16 +53,24 @@ module CI
53
53
  @formatter.start(spec_count)
54
54
  end
55
55
 
56
+ # rspec 0.9
56
57
  def add_behaviour(name)
57
58
  @formatter.add_behaviour(name)
58
59
  new_suite(name)
59
60
  end
60
61
 
62
+ # Compatibility with rspec < 1.2.4
61
63
  def add_example_group(example_group)
62
64
  @formatter.add_example_group(example_group)
63
65
  new_suite(example_group.description)
64
66
  end
65
67
 
68
+ # rspec >= 1.2.4
69
+ def example_group_started(example_group)
70
+ @formatter.example_group_started(example_group)
71
+ new_suite(example_group.description)
72
+ end
73
+
66
74
  def example_started(name)
67
75
  @formatter.example_started(name)
68
76
  name = name.description if name.respond_to?(:description)
@@ -1,5 +1,5 @@
1
1
  module CI
2
2
  module Reporter
3
- VERSION = "1.5.2"
3
+ VERSION = "1.5.3"
4
4
  end
5
5
  end
@@ -43,7 +43,7 @@ describe "The RSpec reporter" do
43
43
  example_group.stub!(:description).and_return "A context"
44
44
 
45
45
  @formatter.should_receive(:start).with(3)
46
- @formatter.should_receive(:add_example_group).with(example_group)
46
+ @formatter.should_receive(:example_group_started).with(example_group)
47
47
  @formatter.should_receive(:example_started).exactly(3).times
48
48
  @formatter.should_receive(:example_passed).once
49
49
  @formatter.should_receive(:example_failed).once
@@ -55,7 +55,7 @@ describe "The RSpec reporter" do
55
55
  @formatter.should_receive(:close).once
56
56
 
57
57
  @fmt.start(3)
58
- @fmt.add_example_group(example_group)
58
+ @fmt.example_group_started(example_group)
59
59
  @fmt.example_started("should pass")
60
60
  @fmt.example_passed("should pass")
61
61
  @fmt.example_started("should fail")
@@ -91,7 +91,7 @@ describe "The RSpec reporter" do
91
91
  example.stub!(:description).and_return "should do something"
92
92
 
93
93
  @formatter.should_receive(:start)
94
- @formatter.should_receive(:add_example_group).with(group)
94
+ @formatter.should_receive(:example_group_started).with(group)
95
95
  @formatter.should_receive(:example_started).with(example).once
96
96
  @formatter.should_receive(:example_passed).once
97
97
  @formatter.should_receive(:dump_summary)
@@ -100,7 +100,7 @@ describe "The RSpec reporter" do
100
100
  end
101
101
 
102
102
  @fmt.start(2)
103
- @fmt.add_example_group(group)
103
+ @fmt.example_group_started(group)
104
104
  @fmt.example_started(example)
105
105
  @fmt.example_passed(example)
106
106
  @fmt.dump_summary(0.1, 1, 0, 0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sieger
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-30 00:00:00 -06:00
12
+ date: 2009-04-18 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency