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

Conversation

myronmarston
Copy link
Member

This should fix #1541. I'll forward port to 3.0 when we get confirmation this fixes the error for the user.

@cupakromer
Copy link
Member

LGTM

@@ -5,6 +5,14 @@
let(:output) { StringIO.new }
let(:formatter) { RSpec::Core::Formatters::BaseTextFormatter.new(output) }

it 'does not close an already closed output stream' do
output = File.new("./tmp/output_to_close", "w")
Copy link

Choose a reason for hiding this comment

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

It looks like the test failures are just that the tmp folder doesn't exist.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I'll fix this up later today.

soulcutter added a commit that referenced this pull request May 22, 2014
Don't re-close a closed IO (for 2.99)
@soulcutter soulcutter merged commit b355500 into 2-99-maintenance May 22, 2014
@soulcutter soulcutter deleted the fix-1541-for-2-99 branch May 22, 2014 16:09
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…or-2-99

Don't re-close a closed IO (for 2.99)

---
This commit was imported from rspec/rspec-core@b355500.
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.

4 participants