diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2024-10-01 12:42:54 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2024-10-01 12:43:07 +0200 |
commit | 1ae6b46450d0a3f0fa9a1a26642a7bff1586ba0a (patch) | |
tree | 1a050eee35c6ba79a2d9293e1adecb809fafb4e4 /spec/node_spec.rb | |
parent | aea9ad38ec9097430787464c33f322b5239cd699 (diff) | |
download | zorglub-1ae6b46450d0a3f0fa9a1a26642a7bff1586ba0a.zip zorglub-1ae6b46450d0a3f0fa9a1a26642a7bff1586ba0a.tar.gz |
Node : debug to stout instead of stderr
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 1e39567..4e9a5bc 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -295,16 +295,16 @@ describe Zorglub do end it 'debug out should work' do - stderr0 = $stderr.dup - stderrs = StringIO.new - $stderr = stderrs + stdout0 = $stdout.dup + stdouts = StringIO.new + $stdout = stdouts begin APP.opt! :debug, true Node0.my_call '/hello' ensure - $stderr = stderr0 + $stdout = stdout0 end - expect(stderrs.string.include?('spec/data/view/node0/hello')).to be true + expect(stdouts.string.include?('spec/data/view/node0/hello')).to be true end end end |