Sha256: da26e5dca82b250eca227886524106d542b8d2ea0196468b6a43cbc6fa942073
Contents?: true
Size: 1.31 KB
Versions: 4
Compression:
Stored size: 1.31 KB
Contents
# Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License version 2.1 as published by the Free Software Foundation. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA class LoggerTest < Test::Unit::TestCase include GroongaTestUtils def setup @default_log_path = Groonga::Logger.log_path @default_query_log_path = Groonga::Logger.query_log_path end def teardown Groonga::Logger.log_path = @default_log_path Groonga::Logger.query_log_path = @default_query_log_path end def test_reopen Groonga::Logger.unregister if File.exist?(@default_log_path) FileUtils.mv(@default_log_path, "#{@default_log_path}.old") end assert_false(File.exist?(@default_log_path)) Groonga::Logger.reopen assert_true(File.exist?(@default_log_path)) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rroonga-3.0.0-x86-mingw32 | test/test-logger.rb |
rroonga-3.0.0 | test/test-logger.rb |
rroonga-2.1.3-x86-mingw32 | test/test-logger.rb |
rroonga-2.1.3 | test/test-logger.rb |