[Tomoe-cvs 996] CVS update: tomoe/test

アーカイブの一覧に戻る

Kouhei Sutou kous****@users*****
2006年 11月 25日 (土) 00:57:20 JST


Index: tomoe/test/tomoe-spec-utils.rb
diff -u tomoe/test/tomoe-spec-utils.rb:1.4 tomoe/test/tomoe-spec-utils.rb:1.5
--- tomoe/test/tomoe-spec-utils.rb:1.4	Thu Nov 23 23:30:48 2006
+++ tomoe/test/tomoe-spec-utils.rb	Sat Nov 25 00:57:20 2006
@@ -47,15 +47,26 @@
     end
 
     def setup_config_file
+      files = %w(kanjidic2.xml readingtest.xml all.xml)
+      names = files.collect {|file| File.join(@data_dir, file)}.join(";")
       @config_file.open
-      @config_file.puts(<<-EOX)
-<?xml version="1.0" standalone="no"?>
-<tomoeConfig>
-  <dictionary file="#{File.join(@data_dir, "kanjidic2.xml")}"/>
-  <dictionary file="#{File.join(@data_dir, "readingtest.xml")}"/>
-  <dictionary file="#{File.join(@data_dir, "all.xml")}"/>
-</tomoeConfig>
-EOX
+      @config_file.puts(<<-EOC)
+[config]
+use_system_dictionaries = false
+
+[all-dictionary]
+type = xml
+file = #{File.join(@data_dir, "all.xml")}
+use = true
+
+[kanjidic2-dictionary]
+type = xml
+file = #{File.join(@data_dir, "kanjidic2.xml")}
+
+[readingtest-dictionary]
+file = #{File.join(@data_dir, "readingtest.xml")}
+user = true
+EOC
       @config_file.close
     end
   end


tomoe-cvs メーリングリストの案内
アーカイブの一覧に戻る