Skip to content

Commit

Permalink
start at the start
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jun 27, 2010
1 parent b2b459a commit 3375deb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/rspec/core/example.rb
Expand Up @@ -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
Expand Down Expand Up @@ -90,7 +89,7 @@ def accum.run; call; end
end
end

def run_started
def start
record_results :started_at => Time.now
end

Expand Down

0 comments on commit 3375deb

Please sign in to comment.