mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove lazy iteration
Fixes issue with empty? method eating the first example for failure and pending lists.
This commit is contained in:
parent
5e1ca34146
commit
f02e1acb3b
1 changed files with 2 additions and 2 deletions
|
@ -69,12 +69,12 @@ module Spectator
|
|||
|
||||
# Returns a collection of all failed examples.
|
||||
def failures
|
||||
@examples.each.select(&.result.fail?)
|
||||
@examples.select(&.result.fail?)
|
||||
end
|
||||
|
||||
# Returns a collection of all pending (skipped) examples.
|
||||
def pending
|
||||
@examples.each.select(&.result.pending?)
|
||||
@examples.select(&.result.pending?)
|
||||
end
|
||||
|
||||
# Length of time it took to run just example code.
|
||||
|
|
Loading…
Reference in a new issue