From 3375deb28ad2e371f6d3277503ae1fe9d2ce4337 Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Sat, 26 Jun 2010 22:13:05 -0500 Subject: [PATCH] start at the start --- lib/rspec/core/example.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/rspec/core/example.rb b/lib/rspec/core/example.rb index 9bccc8065d..d03a52f252 100644 --- a/lib/rspec/core/example.rb +++ b/lib/rspec/core/example.rb @@ -31,12 +31,11 @@ def in_block? alias_method :behaviour, :example_group def run(example_group_instance, reporter) + start @in_block = false @example_group_instance = example_group_instance @example_group_instance.example = self - run_started - exception = nil the_example = lambda do @@ -90,7 +89,7 @@ def accum.run; call; end end end - def run_started + def start record_results :started_at => Time.now end