spec/ppl/adapter/output_spec.rb in ppl-1.17.1 vs spec/ppl/adapter/output_spec.rb in ppl-1.17.2
- old
+ new
@@ -47,9 +47,15 @@
it "should not send carriage returns to stderr" do
string = "The quick brown fox
"
@stderr.should_receive(:puts).with("The quick brown fox")
@output.error(string)
end
+
+ it "should not sanitise output if nil" do
+ string = nil
+ @stdout.should_receive(:puts).with(nil)
+ @output.line(string)
+ end
end
end