diff options
Diffstat (limited to 'spec')
-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 ] |