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

Add fallback formatter for #message #1980

Merged
merged 5 commits into from
Jun 2, 2015
Merged

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Jun 2, 2015

Add a new MessageFormatter as a fallback when no other formatter in use implements #message

Fixes #1978

JonRowe added a commit that referenced this pull request Jun 2, 2015
@JonRowe JonRowe force-pushed the fallback_message_formatter branch from 93f1801 to f10c115 Compare June 2, 2015 02:33
@JonRowe
Copy link
Member Author

JonRowe commented Jun 2, 2015

Ping @myronmarston

#
# @param notification [MessageNotification] containing message
def message(notification)
output.puts notification.message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build is failing because this line is not covered by a test. (script/rspec_with_simplecov will check coverage).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny because we don't test this on any of the other formatters, oh well easily add a test

@JonRowe JonRowe force-pushed the fallback_message_formatter branch from f10c115 to 64658a3 Compare June 2, 2015 09:57
@JonRowe JonRowe force-pushed the fallback_message_formatter branch from ff752da to 60b2dc7 Compare June 2, 2015 10:23
@JonRowe
Copy link
Member Author

JonRowe commented Jun 2, 2015

Tweaked a bit

@myronmarston
Copy link
Member

LGTM

JonRowe added a commit that referenced this pull request Jun 2, 2015
@JonRowe JonRowe merged commit b3a1d81 into master Jun 2, 2015
@JonRowe JonRowe deleted the fallback_message_formatter branch June 2, 2015 23:30
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
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.

If no formatter is registered that handles the message event, UX can be confusing
2 participants