Skip examples marked pending

This commit is contained in:
Michael Miller 2021-01-30 16:36:15 -07:00
parent 2301e44bd1
commit 3bc567da4c
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -55,6 +55,11 @@ module Spectator
Log.debug { "Running example #{self}" }
Log.warn { "Example #{self} already ran" } if @finished
if pending?
Log.debug { "Skipping example #{self} - marked pending" }
return @result = PendingResult.new
end
previous_example = @@current
@@current = self