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

Commit cc869c8

Browse files
committed
Merge pull request #2254 from mrageh/remove-unused-arg
Remove unused arg
2 parents aed8a07 + 227e7ca commit cc869c8

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)