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

Fix 1127 in master #1142

Merged
merged 8 commits into from
Nov 4, 2013
Merged

Fix 1127 in master #1142

merged 8 commits into from
Nov 4, 2013

Conversation

myronmarston
Copy link
Member

This is my fix for #1127 in master, corresponding to #1141.

This is what the docs say we do. It's also necessary
so that if `configuration.reporter` is accessed before
the CommandLine class has set the output_stream, it
uses $stdout as its output rather than a `StringIO.new`.

Before, issuing a deprecation from `option_parser.rb`
was causing no spec output at all since that happened
before the output_stream was set.
These specs depended on the reporter defaulting
to a `StringIO.new`. Now that it is defaulting to
`$stdout`, we were getting unwanted output from these
two specs.
Everything else in RSpec uses `output_stream`.
@myronmarston
Copy link
Member Author

/cc @xaviershay @JonRowe

@xaviershay
Copy link
Member

LGTM aside from clarifying question.

This reverts commit a22d524.

This is no longer needed with the new approach we are taking
to `output_stream` (e.g. having it default to $stdout), and
it was causing `command_line_spec.rb` to have a failure when
run in isolation.
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