Sha256: 5e4ee0b271200cc84831643da36cca5d913ccfe5c940e9b087a32d81e63ce9dc
Contents?: true
Size: 1.28 KB
Versions: 56
Compression:
Stored size: 1.28 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 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
56 entries across 56 versions & 1 rubygems