Sha256: 1edd2c4125a3fd750e4517c1b7267906c2e2dae79e9f6d10a055980f982d23a4
Contents?: true
Size: 1.75 KB
Versions: 9
Compression:
Stored size: 1.75 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>image_has_collection_of (test/testhelper.rb)</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/testhelper.rb, line 16</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image_has_collection_of</span>(<span class="ruby-identifier">url</span>,<span class="ruby-identifier">collection_type</span>) <span class="ruby-identifier">image</span>=<span class="ruby-ivar">@@filecache</span>.<span class="ruby-identifier">get_file_system_image</span>(<span class="ruby-identifier">url</span>) <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">image</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">collection_type</span>),<span class="ruby-node">"#{url} should contain a collection of #{collection_type}"</span>) <span class="ruby-identifier">collection</span>=<span class="ruby-identifier">image</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">collection_type</span>) <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">collection</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">></span><span class="ruby-value">0</span>,<span class="ruby-node">"#{url} should contain more than zero #{collection_type}"</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
9 entries across 9 versions & 1 rubygems