Sha256: 6deec38694f4b1a2ef1d70dbb6d8ec852348e60c89fdd308ce108b1c8e42efe5

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 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>assert! (UnitTestKernel)</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 lib/reap/test.rb, line 18</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">blk</span>)
    <span class="ruby-identifier">old</span> = <span class="ruby-identifier">$test_mode</span>
    <span class="ruby-identifier">$test_mode</span> = <span class="ruby-keyword kw">true</span>
    <span class="ruby-identifier">r</span> = <span class="ruby-identifier">blk</span>.<span class="ruby-identifier">call</span>
    <span class="ruby-identifier">$test_mode</span> = <span class="ruby-identifier">old</span>
    <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">r</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reap-4.0 web/rdoc/classes/UnitTestKernel.src/M000021.html
reap-4.0.0 web/rdoc/classes/UnitTestKernel.src/M000020.html
reap-5.10.10 web/rdoc/classes/UnitTestKernel.src/M000021.html