Sha256: ff201a66ae578cb12fc24bba8ac673e7c2fdbb903f9a48b9f79bf7484c33fb72
Contents?: true
Size: 2 KB
Versions: 5
Compression:
Stored size: 2 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_content_from_string_tree_should_return_blob (TestTree)</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_tree.rb, line 42</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_content_from_string_tree_should_return_blob</span> <span class="ruby-identifier">text</span> = <span class="ruby-identifier">fixture</span>(<span class="ruby-value str">'ls_tree_b'</span>).<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\n"</span>).<span class="ruby-identifier">first</span> <span class="ruby-identifier">tree</span> = <span class="ruby-ivar">@t</span>.<span class="ruby-identifier">content_from_string</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">text</span>) <span class="ruby-identifier">assert_equal</span> <span class="ruby-constant">Blob</span>, <span class="ruby-identifier">tree</span>.<span class="ruby-identifier">class</span> <span class="ruby-identifier">assert_equal</span> <span class="ruby-value str">"aa94e396335d2957ca92606f909e53e7beaf3fbb"</span>, <span class="ruby-identifier">tree</span>.<span class="ruby-identifier">id</span> <span class="ruby-identifier">assert_equal</span> <span class="ruby-value str">"100644"</span>, <span class="ruby-identifier">tree</span>.<span class="ruby-identifier">mode</span> <span class="ruby-identifier">assert_equal</span> <span class="ruby-value str">"grit.rb"</span>, <span class="ruby-identifier">tree</span>.<span class="ruby-identifier">name</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
5 entries across 5 versions & 1 rubygems