Sha256: 2e010d72e6938323dd5ced59633d2502f15c9cedce4827b1a4eea0f8a6e4e188
Contents?: true
Size: 1.91 KB
Versions: 5
Compression:
Stored size: 1.91 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_setter_bad (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 285</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_alternates_setter_bad</span> <span class="ruby-identifier">alts</span> = <span class="ruby-node">%w{/path/to/repo.git/objects}</span> <span class="ruby-identifier">alts</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">alt</span><span class="ruby-operator">|</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-identifier">alt</span>).<span class="ruby-identifier">returns</span>(<span class="ruby-keyword kw">false</span>) <span class="ruby-keyword kw">end</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">any_instance</span>.<span class="ruby-identifier">expects</span>(<span class="ruby-identifier">:write</span>).<span class="ruby-identifier">never</span> <span class="ruby-identifier">assert_raise</span> <span class="ruby-constant">RuntimeError</span> <span class="ruby-keyword kw">do</span> <span class="ruby-ivar">@r</span>.<span class="ruby-identifier">alternates</span> = <span class="ruby-identifier">alts</span> <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
5 entries across 5 versions & 1 rubygems