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

TypeError: can't convert Tempfile into StringIO #18

Open
pboling opened this issue Oct 2, 2024 · 0 comments
Open

TypeError: can't convert Tempfile into StringIO #18

pboling opened this issue Oct 2, 2024 · 0 comments

Comments

@pboling
Copy link

pboling commented Oct 2, 2024

  1) MyClass#initialize when level is invalid when output to stdout warns
     Failure/Error: subject(:logged) { capture(:stdout) { instance } }
     
     TypeError:
       can't convert Tempfile into StringIO

I have zeroed in on the culprit as the setting of the environment variable CI_CAPTURE. If I run my tests through the ci_reporter rake task (ci:setup:rspec), and do not set CI_CAPTURE, my output tests fail because the output is a Tempfile instead of a String.

If I set CI_CAPTURE=off then it works fine.

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

1 participant