null+****@clear*****
null+****@clear*****
2012年 3月 6日 (火) 16:38:50 JST
Kouhei Sutou 2012-03-06 16:38:50 +0900 (Tue, 06 Mar 2012) New Revision: cb866671046b3325dc5b82555df16b8bf5ac45f6 Log: [test] add for enable-logging Modified files: test/test-executor.rb Modified: test/test-executor.rb (+7 -0) =================================================================== --- test/test-executor.rb 2012-03-06 16:37:55 +0900 (676575f) +++ test/test-executor.rb 2012-03-06 16:38:50 +0900 (5c39314) @@ -37,5 +37,12 @@ class TestExecutor < Test::Unit::TestCase execute("# disable-logging") assert_not_predicate(@context, :logging?) end + + def test_enable_logging + @context.logging = false + assert_not_predicate(@context, :logging?) + execute("# enable-logging") + assert_predicate(@context, :logging?) + end end end