5badba0d72411c4ead8ee156d66195bd4246c4a3
[chise/ruby.git] / t / tc_config.rb
1 #!/usr/bin/env ruby
2 # $Id: tc_config.rb,v 1.1 2003-11-30 13:16:39 eto Exp $
3 # Copyright (C) 2002-2003 Kouichirou Eto, All rights reserved.
4 # This is free software with ABSOLUTELY NO WARRANTY.
5 # You can redistribute it and/or modify it under the terms of the GNU GPL2.
6
7 require 'test/unit'
8 $LOAD_PATH.unshift('../lib')
9 require 'chise/config'
10 include CHISE
11
12 class TC_Character < Test::Unit::TestCase
13   def setup
14     @config = Config.instance
15   end
16   def test_config
17     assert_equal('c:/chise', @config.base_dir.to_s)
18     assert_equal('c:/chise/char-db', @config.db_dir.to_s)
19     assert_equal('c:/chise/ids', @config.ids_dir.to_s)
20   end
21   def teardown
22   end
23 end