lib/teabag/formatters/progress_formatter.rb in teabag-0.3.2 vs lib/teabag/formatters/progress_formatter.rb in teabag-0.3.3
- old
+ new
@@ -57,12 +57,12 @@
end
def failure_log
log "Failures:\n"
failures.each_with_index do |failure, index|
- log "\n #{index + 1}) #{failure["spec"]}\n"
- log " Failure/Error: #{failure["message"]}\n", RED
+ log "\n #{index + 1}) #{failure.full_description}\n"
+ log " Failure/Error: #{failure.message}\n", RED
end
log "\n"
end
def failed_examples
@@ -74,10 +74,10 @@
end
def pending_log
log "Pending:"
pendings.each do |result|
- log "\n #{result.spec}\n", YELLOW
+ log "\n #{result.full_description}\n", YELLOW
log " # Not yet implemented\n", CYAN
end
log "\n"
end