Permalink
Browse files

maybe this is more explicit after all

  • Loading branch information...
1 parent 921a744 commit 0aa94ebd883c77972bb39033018e28cf564a0707 @dchelimsky dchelimsky committed Apr 16, 2010
Showing with 6 additions and 11 deletions.
  1. +5 −10 lib/rspec/core/example_group.rb
  2. +1 −1 rspec-core.gemspec
@@ -176,14 +176,13 @@ def self.eval_after_eachs(running_example)
end
def self.run(reporter)
+ example_group_instance = new
reporter.add_example_group(self)
+ eval_before_alls(example_group_instance)
+ success = run_examples(example_group_instance, reporter)
+ eval_after_alls(example_group_instance)
- new do |instance|
- eval_before_alls(instance)
- success = run_examples(instance, reporter)
- eval_after_alls(instance)
- success
- end
+ success
end
# Runs all examples, returning true only if all of them pass
@@ -209,10 +208,6 @@ def self.declaration_line_numbers
examples.collect {|e| e.metadata[:line_number]}
end
- def initialize
- yield self if block_given?
- end
-
def described_class
self.class.describes
end
View
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = ["Chad Humphries", "David Chelimsky"]
- s.date = %q{2010-04-12}
+ s.date = %q{2010-04-16}
s.description = %q{Rspec runner and example group classes}
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
s.executables = ["rspec", "spec"]

0 comments on commit 0aa94eb

Please sign in to comment.