lib/spec/runner.rb in dchelimsky-rspec-1.1.10 vs lib/spec/runner.rb in dchelimsky-rspec-1.1.11
- old
+ new
@@ -185,10 +185,10 @@
end
def register_at_exit_hook # :nodoc:
unless @already_registered_at_exit_hook
at_exit do
- unless $! || Spec.run? || Spec::Example::ExampleGroupFactory.all_registered?(options.example_groups)
+ unless $! || Spec.run? || Spec::Example::ExampleGroupFactory.registered_or_ancestor_of_registered?(options.example_groups)
success = Spec.run
exit success if Spec.exit?
end
end
@already_registered_at_exit_hook = true