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

Remove default val provided to arg exception_presenter #2221

Merged
merged 1 commit into from
Apr 2, 2016
Merged

Remove default val provided to arg exception_presenter #2221

merged 1 commit into from
Apr 2, 2016

Conversation

mrageh
Copy link
Contributor

@mrageh mrageh commented Apr 2, 2016

When initializing a new instance of FailedExampleNotification in [1] we always
use [2] to provide a correctly configured instance of ExceptionPresenter. Yet
we pass the exception_presenter as a default value when instantianting
FailedExampleNotification.

It seems like this default value is only used to help us write a spec for
FailedExampleNotification.

In this commit I've removed the default value we provide to
FailedExampleNotification (since) it's redundant and simply instantiated a
new instance of the ExceptionPresenter in the spec for it to use.

1.) http://bit.ly/1X4NIlU
2.) http://bit.ly/1qn32Qv

When initializing a new instance of `FailedExampleNotification` in [1] we always
use [2] to provide a correctly configured instance of `ExceptionPresenter`. Yet
we pass the `exception_presenter` as a default value when instantianting
`FailedExampleNotification`.

It seems like this default value is only used to help us write a spec for
`FailedExampleNotification`.

In this commit I've removed the default value we provide to
`FailedExampleNotification` (since) it's redundant and simply instantiated a
new instance of the `ExceptionPresenter` in the spec for it to use.

1.) http://bit.ly/1X4NIlU
2.) http://bit.ly/1qn32Qv
@mrageh
Copy link
Contributor Author

mrageh commented Apr 2, 2016

Not sure it's worth merging this tiny PR that removes a redundant default arg, feel free to close this if you think it's not worth merging.

@myronmarston myronmarston merged commit 4b0a104 into rspec:master Apr 2, 2016
@myronmarston
Copy link
Member

LGTM

@mrageh mrageh deleted the remove-redundant-default-value-arg branch April 2, 2016 09:33
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
…lue-arg

Remove default val provided to arg `exception_presenter`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants