vaguerent/test/vagrant/util/plain_logger_test.rb
2010-05-20 16:47:25 -07:00

18 lines
456 B
Ruby

require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
class PlainLoggerUtilTest < Test::Unit::TestCase
setup do
@klass = Vagrant::Util::PlainLogger
@instance = @klass.new(nil)
end
should "inherit from the standard logger" do
assert @instance.is_a?(::Logger)
end
should "just add a newline to the message" do
msg = "foo bar baz"
assert_equal "#{msg}\n", @instance.format_message("1", "2", "3", msg)
end
end