diff options
Diffstat (limited to 'spec/node_spec.rb')
-rw-r--r-- | spec/node_spec.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/spec/node_spec.rb b/spec/node_spec.rb index 88ab4a5..62b9161 100644 --- a/spec/node_spec.rb +++ b/spec/node_spec.rb @@ -297,10 +297,18 @@ describe Zorglub do expect(h[:layout]).to eq File.join(Node7.app.opt(:root), 'alt','layout','default') end - # it "debug out should work" do - # APP.opt! :debug, true - # Node0.my_call '/hello' - # end + it "debug out should work" do + stderr0= $stderr.dup + stderrs = StringIO.new + $stderr = stderrs + begin + APP.opt! :debug, true + Node0.my_call '/hello' + ensure + $stderr = stderr0 + end + expect(stderrs.string.include?('spec/data/view/node0/hello')).to be true + end end |