summaryrefslogtreecommitdiffstats
path: root/spec/node_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-01-01 10:16:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-01-01 10:16:43 +0100
commit6c7e0f38905a4a9ddbcfbe8a11d78bbe9c6ffab9 (patch)
treec6d0d61be964a8d38f6a5420487f41cb3a6ac815 /spec/node_spec.rb
parent401adfc230cb8d54fbf6746580ad0e549868e4d6 (diff)
downloadzorglub-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.rb16
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