small maintanance
This commit is contained in:
@ -13,6 +13,9 @@ module Mom
|
||||
assert_equal Array , slot.slots.class
|
||||
assert_equal :caller , slot.slots.first
|
||||
end
|
||||
def test_to_s
|
||||
assert_equal "[message,caller]" , slot.to_s
|
||||
end
|
||||
def test_create_fail_none
|
||||
assert_raises {slot(nil)}
|
||||
end
|
||||
|
@ -18,5 +18,8 @@ module Mom
|
||||
def test_def_const
|
||||
assert_equal "hi" , @instruction.constant.to_string
|
||||
end
|
||||
def test_to_s
|
||||
assert_equal "[StringConstant]" , @definition.to_s
|
||||
end
|
||||
end
|
||||
end
|
||||
|
15
test/util/test_logger.rb
Normal file
15
test/util/test_logger.rb
Normal file
@ -0,0 +1,15 @@
|
||||
require "util/logging"
|
||||
module Util
|
||||
|
||||
class LoggerTest < MiniTest::Test
|
||||
include Util::Logging
|
||||
log_level :info
|
||||
|
||||
def test_debug
|
||||
self.log.debug "Just good to know"
|
||||
end
|
||||
def test_unknown
|
||||
self.log.debug "Whats this"
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user