spec/unit/console_logger_spec.rb in hiera-0.3.0 vs spec/unit/console_logger_spec.rb in hiera-1.0.0rc4
- old
+ new
@@ -1,19 +1,19 @@
require 'spec_helper'
class Hiera
- describe Console_logger do
- describe "#warn" do
- it "should warn to STDERR" do
- STDERR.expects(:puts).with("WARN: 0: foo")
- Time.expects(:now).returns(0)
- Console_logger.warn("foo")
- end
+ describe Console_logger do
+ describe "#warn" do
+ it "should warn to STDERR" do
+ STDERR.expects(:puts).with("WARN: 0: foo")
+ Time.expects(:now).returns(0)
+ Console_logger.warn("foo")
+ end
- it "should debug to STDERR" do
- STDERR.expects(:puts).with("DEBUG: 0: foo")
- Time.expects(:now).returns(0)
- Console_logger.debug("foo")
- end
- end
+ it "should debug to STDERR" do
+ STDERR.expects(:puts).with("DEBUG: 0: foo")
+ Time.expects(:now).returns(0)
+ Console_logger.debug("foo")
+ end
end
+ end
end