<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -119,7 +119,7 @@ module Spec
 
       def run
         examples = examples_to_run
-        reporter.add_example_group(self)
+        reporter.add_example_group(self) unless examples_to_run.empty?
         return true if examples.empty?
         return dry_run(examples) if dry_run?
 </diff>
      <filename>lib/spec/example/example_group_methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -128,8 +128,11 @@ module Spec
             def testify
               raise &quot;This is not a real test&quot;
             end
+            def should_something
+              # forces the run
+            end
           end
-          example_group.examples.length.should == 0
+          example_group.examples.length.should == 1
           example_group.run.should be_true
         end
 
@@ -518,6 +521,22 @@ module Spec
           example_group.registration_backtrace.join(&quot;\n&quot;).should include(&quot;#{__FILE__}:#{__LINE__-1}&quot;)
         end
       end
+      
+      describe &quot;#run&quot; do
+        it &quot;should add_example_group if there are any examples to run&quot; do
+          example_group = Class.new(ExampleGroup) do
+            it &quot;should do something&quot; do end
+          end
+          reporter.should_receive(:add_example_group)
+          example_group.run
+        end
+
+        it &quot;should NOT add_example_group if there are no examples to run&quot; do
+          example_group = Class.new(ExampleGroup) do end
+          reporter.should_not_receive(:add_example_group)
+          example_group.run
+        end
+      end
     end
   end
 end
\ No newline at end of file</diff>
      <filename>spec/spec/example/example_group_methods_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bb3a82f66124ba93a7cd97590684b893b832c59d</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec/commit/4905ace22d4579b0851c2d3fe02e36bedb12571e</url>
  <id>4905ace22d4579b0851c2d3fe02e36bedb12571e</id>
  <committed-date>2008-06-15T09:07:32-07:00</committed-date>
  <authored-date>2008-06-15T09:07:32-07:00</authored-date>
  <message>don't report example groups with no examples [#412 status:resolved]</message>
  <tree>466c931bc1800c34222d863bc6d6a5b5ce1f8403</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
