Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge commit 'paulboone/master' into rspec124

  • Loading branch information...
commit 42134551441490794d1ba80ecf454865765a43e6 2 parents cae51ac + 82da9ad
@nicksieger nicksieger authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.