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 | |
parent | 401adfc230cb8d54fbf6746580ad0e549868e4d6 (diff) | |
download | zorglub-6c7e0f38905a4a9ddbcfbe8a11d78bbe9c6ffab9.zip zorglub-6c7e0f38905a4a9ddbcfbe8a11d78bbe9c6ffab9.tar.gz |
pull coverage up to 100% again
-rw-r--r-- | spec/node_spec.rb | 16 | ||||
-rw-r--r-- | spec/spec_helper.rb | 2 |
2 files changed, 13 insertions, 5 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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index bb42058..40fb924 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,7 +10,7 @@ end begin require 'coveralls' - SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] |