Permalink
Browse files

patches for integration with rspec 1.2.4

  • Loading branch information...
1 parent 47fb8fa commit 82da9adaee0e7476ac275e1fb1ec420f144371c4 Paul Boone committed Apr 16, 2009
Showing with 6 additions and 6 deletions.
  1. +2 −2 lib/ci/reporter/rspec.rb
  2. +4 −4 spec/ci/reporter/rspec_spec.rb
View
4 lib/ci/reporter/rspec.rb
@@ -58,8 +58,8 @@ def add_behaviour(name)
new_suite(name)
end
- def add_example_group(example_group)
- @formatter.add_example_group(example_group)
+ def example_group_started(example_group)
+ @formatter.example_group_started(example_group)
new_suite(example_group.description)
end
View
8 spec/ci/reporter/rspec_spec.rb
@@ -43,7 +43,7 @@
example_group.stub!(:description).and_return "A context"
@formatter.should_receive(:start).with(3)
- @formatter.should_receive(:add_example_group).with(example_group)
+ @formatter.should_receive(:example_group_started).with(example_group)
@formatter.should_receive(:example_started).exactly(3).times
@formatter.should_receive(:example_passed).once
@formatter.should_receive(:example_failed).once
@@ -55,7 +55,7 @@
@formatter.should_receive(:close).once
@fmt.start(3)
- @fmt.add_example_group(example_group)
+ @fmt.example_group_started(example_group)
@fmt.example_started("should pass")
@fmt.example_passed("should pass")
@fmt.example_started("should fail")
@@ -91,7 +91,7 @@
example.stub!(:description).and_return "should do something"
@formatter.should_receive(:start)
- @formatter.should_receive(:add_example_group).with(group)
+ @formatter.should_receive(:example_group_started).with(group)
@formatter.should_receive(:example_started).with(example).once
@formatter.should_receive(:example_passed).once
@formatter.should_receive(:dump_summary)
@@ -100,7 +100,7 @@
end
@fmt.start(2)
- @fmt.add_example_group(group)
+ @fmt.example_group_started(group)
@fmt.example_started(example)
@fmt.example_passed(example)
@fmt.dump_summary(0.1, 1, 0, 0)

0 comments on commit 82da9ad

Please sign in to comment.