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

Get failure message from exception_presenter #2222

Merged
merged 1 commit into from
Jun 1, 2016
Merged

Get failure message from exception_presenter #2222

merged 1 commit into from
Jun 1, 2016

Conversation

mrageh
Copy link
Contributor

@mrageh mrageh commented Apr 2, 2016

Currently a few of the formatters get their failure message
directly from the exception[1].

This commit changes the HTML formatter and gets the failure message from the
FailedExampleNotification#message_lines, which delegates this message to the
ExceptionPresenter#message_lines.

1.) http://bit.ly/1PNf22l

@mrageh
Copy link
Contributor Author

mrageh commented Apr 3, 2016

cc @JonRowe

@JonRowe
Copy link
Member

JonRowe commented Apr 4, 2016

I don't see anything wrong with this in theory but the spec for the HTML formatter needs to be updated...

@mrageh
Copy link
Contributor Author

mrageh commented May 29, 2016

Updated this PR

@mrageh
Copy link
Contributor Author

mrageh commented May 31, 2016

@JonRowe these failures seem unrelated to the work I've done

Currently a few of the formatters get their failure message directly from the
exception[1].

This commit changes the HTML formatter and gets the failure message from the
`FailedExampleNotification#message_lines`, which delegates this message to the
`ExceptionPresenter#message_lines`. Meaning we the HTML formatter uses the
exception presenter to get the exception.

1.) https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/formatters/html_formatter.rb#L71
@mrageh
Copy link
Contributor Author

mrageh commented May 31, 2016

I think this PR maybe good to go as those failures have now disappeared thanks to #2249

@JonRowe JonRowe merged commit 6dbb527 into rspec:master Jun 1, 2016
@JonRowe
Copy link
Member

JonRowe commented Jun 1, 2016

❤️ thanks

JonRowe added a commit that referenced this pull request Jun 1, 2016
@mrageh mrageh deleted the get-failure-message-from-exception-presenter branch June 1, 2016 10:55
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
…ception-presenter

Get failure message from `exception_presenter`
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants