Remove conflicting duplicate #new_pending_result

This commit is contained in:
Michael Miller 2019-02-15 22:19:34 -07:00
parent e8ca350152
commit 7504536528

View file

@ -15,11 +15,6 @@ def new_failure_result(result_type : Spectator::Result.class = Spectator::Failed
result_type.new(example, elapsed, expectations, error) result_type.new(example, elapsed, expectations, error)
end end
def new_pending_result
example = PassingExample.create # Doesn't matter what type of example is used here.
Spectator::PendingResult.new(example)
end
def new_report(successful_count = 5, failed_count = 5, error_count = 5, pending_count = 5, overhead_time = 1_000_000i64) def new_report(successful_count = 5, failed_count = 5, error_count = 5, pending_count = 5, overhead_time = 1_000_000i64)
results = [] of Spectator::Result results = [] of Spectator::Result
successful_count.times { results << new_passing_result } successful_count.times { results << new_passing_result }