rspec/rspec-core — pull request #1073 by JonRowe (2013-09-12 10:53:01+00:00)
Title: Running rspec-core's specs with `--order default` produces an error

When you run:

```
bin/rspec --order default -b
```

It fails:

```
Failures:

1) RSpec::Core::CommandLine configures streams before command line options
Failure/Error: command_line.run err, out
NoMethodError:
private method `puts' called for nil:NilClass
# ./lib/rspec/core/formatters/deprecation_formatter.rb:106:in `deprecation_summary'
# ./lib/rspec/core/formatters/deprecation_formatter.rb:32:in `deprecation_summary'
# ./lib/rspec/core/reporter.rb:127:in `block in notify'
# ./lib/rspec/core/reporter.rb:126:in `each'
# ./lib/rspec/core/reporter.rb:126:in `notify'
# ./lib/rspec/core/reporter.rb:111:in `finish'
# ./lib/rspec/core/reporter.rb:60:in `report'
# ./lib/rspec/core/command_line.rb:25:in `run'
# ./spec/rspec/core/command_line_spec.rb:24:in `block (2 levels) in '
# ./lib/rspec/core/example.rb:114:in `instance_exec'
# ./lib/rspec/core/example.rb:114:in `block in run'
# ./lib/rspec/core/example.rb:181:in `call'
# ./lib/rspec/core/example.rb:181:in `run'
# ./spec/spec_helper.rb:114:in `block (4 levels) in '
# ./spec/spec_helper.rb:68:in `instance_eval'
# ./spec/spec_helper.rb:68:in `block in sandboxed'
# ./spec/support/sandboxed_mock_space.rb:38:in `sandboxed'
# ./spec/spec_helper.rb:67:in `sandboxed'
# ./spec/spec_helper.rb:114:in `block (3 levels) in '
# ./lib/rspec/core/example.rb:244:in `instance_exec'
# ./lib/rspec/core/example.rb:244:in `instance_exec'
# ./lib/rspec/core/hooks.rb:104:in `block (2 levels) in run'
# ./lib/rspec/core/hooks.rb:102:in `call'
# ./lib/rspec/core/hooks.rb:102:in `run'
# ./lib/rspec/core/hooks.rb:446:in `run_hook'
# ./lib/rspec/core/example_group.rb:386:in `run_around_each_hooks'
# ./lib/rspec/core/example.rb:253:in `with_around_each_hooks'
# ./lib/rspec/core/example.rb:111:in `run'
# ./lib/rspec/core/example_group.rb:436:in `block in run_examples'
# ./lib/rspec/core/example_group.rb:432:in `map'
# ./lib/rspec/core/example_group.rb:432:in `run_examples'
# ./lib/rspec/core/example_group.rb:417:in `run'
# ./lib/rspec/core/command_line.rb:28:in `block (2 levels) in run'
# ./lib/rspec/core/command_line.rb:28:in `map'
# ./lib/rspec/core/command_line.rb:28:in `block in run'
# ./lib/rspec/core/reporter.rb:58:in `report'
# ./lib/rspec/core/command_line.rb:25:in `run'
# ./lib/rspec/core/runner.rb:90:in `run'
# ./lib/rspec/core/runner.rb:17:in `block in autorun'

Finished in 2.72 seconds
1121 examples, 1 failure, 1 pending

Failed examples:

rspec ./spec/rspec/core/command_line_spec.rb:15 # RSpec::Core::CommandLine configures streams before command line options
```