Pass along pending tag value if available

This commit is contained in:
Michael Miller 2021-06-11 18:30:12 -06:00
parent 4a9ec3df4a
commit 3b1db7b772
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -89,7 +89,7 @@ module Spectator
if pending?
Log.debug { "Skipping example #{self} - marked pending" }
@finished = true
return @result = PendingResult.new
return @result = PendingResult.new(Time::Span::ZERO, tags[:pending] || "No reason given")
end
previous_example = @@current