doc/classes/TC_TarImporter.src/M000010.html in autobuild-0.5.1 vs doc/classes/TC_TarImporter.src/M000010.html in autobuild-0.6
- old
+ new
@@ -3,18 +3,26 @@
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
- <title>test_tar_mode (TC_TarImporter)</title>
+ <title>setup (TC_TarImporter)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 37</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_tar_mode</span>
- <span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">TarImporter</span><span class="ruby-operator">::</span><span class="ruby-constant">Plain</span>, <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">url_to_mode</span>(<span class="ruby-value str">'tarfile.tar'</span>))
- <span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">TarImporter</span><span class="ruby-operator">::</span><span class="ruby-constant">Gzip</span>, <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">url_to_mode</span>(<span class="ruby-value str">'tarfile.tar.gz'</span>))
- <span class="ruby-identifier">assert_equal</span>(<span class="ruby-constant">TarImporter</span><span class="ruby-operator">::</span><span class="ruby-constant">Bzip</span>, <span class="ruby-constant">TarImporter</span>.<span class="ruby-identifier">url_to_mode</span>(<span class="ruby-value str">'tarfile.tar.bz2'</span>))
+ <pre><span class="ruby-comment cmt"># File test/test_import_tar.rb, line 16</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
+ <span class="ruby-identifier">$PROGRAMS</span> = {}
+ <span class="ruby-identifier">$UPDATE</span> = <span class="ruby-keyword kw">true</span>
+ <span class="ruby-identifier">$LOGDIR</span> = <span class="ruby-node">"#{TestTools.tempdir}/log"</span>
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">$LOGDIR</span>)
+
+ <span class="ruby-ivar">@datadir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'data'</span>)
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-ivar">@datadir</span>)
+ <span class="ruby-ivar">@tarfile</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@datadir</span>, <span class="ruby-value str">'tarimport.tar.gz'</span>)
+ <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">cp</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span><span class="ruby-operator">::</span><span class="ruby-constant">DATADIR</span>, <span class="ruby-value str">'tarimport.tar.gz'</span>), <span class="ruby-ivar">@tarfile</span>)
+
+ <span class="ruby-ivar">@cachedir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TestTools</span>.<span class="ruby-identifier">tempdir</span>, <span class="ruby-value str">'cache'</span>)
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>
\ No newline at end of file