Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 227e7ca

Browse files
committed
Remove unused arg
It seems like the `_exception` arg passed to `DocumentationFormatter#failure_output` is a relic of the past [1]. So I think it's safe to remove it. 1.) 79be9b3#diff-6651211a081b5ea464e033bf7c8e061cL46
1 parent aed8a07 commit 227e7ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/rspec/core/formatters/documentation_formatter.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def example_pending(pending)
3434
end
3535

3636
def example_failed(failure)
37-
output.puts failure_output(failure.example,
38-
failure.example.execution_result.exception)
37+
output.puts failure_output(failure.example)
3938
end
4039

4140
private
@@ -50,7 +49,7 @@ def pending_output(example, message)
5049
:pending)
5150
end
5251

53-
def failure_output(example, _exception)
52+
def failure_output(example)
5453
ConsoleCodes.wrap("#{current_indentation}#{example.description.strip} " \
5554
"(FAILED - #{next_failure_index})",
5655
:failure)

0 commit comments

Comments
 (0)