summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r--spec/node_spec.rb10
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