Sha256: 64649ec1d21df4599ac72941b6ea9ab82123000e5a1d80affb375cd895d4b14d
Contents?: true
Size: 1.67 KB
Versions: 5
Compression:
Stored size: 1.67 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>test_alternates_with_two_alternates (TestRepo)</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_repo.rb, line 256</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_alternates_with_two_alternates</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expects</span>(<span class="ruby-identifier">:exist?</span>).<span class="ruby-identifier">with</span>(<span class="ruby-node">"#{absolute_project_path}/.git/objects/info/alternates"</span>).<span class="ruby-identifier">returns</span>(<span class="ruby-keyword kw">true</span>) <span class="ruby-constant">File</span>.<span class="ruby-identifier">any_instance</span>.<span class="ruby-identifier">expects</span>(<span class="ruby-identifier">:read</span>).<span class="ruby-identifier">returns</span>(<span class="ruby-value str">"/path/to/repo1/.git/objects\n/path/to/repo2.git/objects\n"</span>) <span class="ruby-identifier">assert_equal</span> [<span class="ruby-value str">"/path/to/repo1/.git/objects"</span>, <span class="ruby-value str">"/path/to/repo2.git/objects"</span>], <span class="ruby-ivar">@r</span>.<span class="ruby-identifier">alternates</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
5 entries across 5 versions & 1 rubygems