diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2019-01-01 10:16:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2019-01-01 10:16:43 +0100 |
commit | 6c7e0f38905a4a9ddbcfbe8a11d78bbe9c6ffab9 (patch) | |
tree | c6d0d61be964a8d38f6a5420487f41cb3a6ac815 /spec/node_spec.rb | |
parent | 401adfc230cb8d54fbf6746580ad0e549868e4d6 (diff) | |
download | zorglub-6c7e0f38905a4a9ddbcfbe8a11d78bbe9c6ffab9.zip zorglub-6c7e0f38905a4a9ddbcfbe8a11d78bbe9c6ffab9.tar.gz |
pull coverage up to 100% again
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 |