Skip to content

Commit

Permalink
Use "run_suite" name as an alias of "run" for backward compatibility
Browse files Browse the repository at this point in the history
GitHub: #28

Reported by Vladislav Rassokhin. Thanks!!!
  • Loading branch information
kou committed Jun 6, 2012
1 parent b984062 commit 7dec384
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/test/unit/ui/testrunnermediator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def run
notify_listeners(RESET, @suite.size)
notify_listeners(STARTED, result)

run_suite(result)

@suite.run(result) do |channel, value|
notify_listeners(channel, value)
end
end
ensure
elapsed_time = Time.now - start_time
Expand All @@ -50,6 +53,10 @@ def run
result
end

# Just for backward compatibility.
# @see GitHub#28
alias_method :run_suite, :run

private
# A factory method to create the result the mediator
# should run with. Can be overridden by subclasses if
Expand Down Expand Up @@ -88,12 +95,6 @@ def with_listener(result)
pass_assertion_listener)
end
end

def run_suite(result)
@suite.run(result) do |channel, value|
notify_listeners(channel, value)
end
end
end
end
end
Expand Down

0 comments on commit 7dec384

Please sign in to comment.