Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSpec output only shows up in Spork's window when formatters are set #209

Open
suan opened this issue Sep 19, 2012 · 1 comment
Open

RSpec output only shows up in Spork's window when formatters are set #209

suan opened this issue Sep 19, 2012 · 1 comment

Comments

@suan
Copy link

suan commented Sep 19, 2012

I've noticed a weird problem where whenever I add any formatter in my spec_helper, RSpec output gets sent to the window Spork is running in instead of the window I initiate tests from. It doesn't matter if I add the formatter in the prefork block, the each_run block, or both. It happens even when I add the default formatter! ("progress") For example, when I do this in my spec_helper.rb:

Spork.each_run do
  RSpec.configure do |c|
    ...
    c.add_formatter 'progress'
    ...
  end
end

The output is fine if I don't add any formatters, and anything that prints to STDOUT from my tests or code also show up in the correct window. I have a feeling that it has something to do with IO objects being cached or something... is adding formatters just not supported?

@inspire22
Copy link

I'm having the same issue, even though I'm not setting add_formatter anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants