Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bc75e49382dc9b94ff02ee45f6438cf2 > files > 89

ruby-actionmailer-2.3.4-1mdv2010.0.noarch.rpm

<?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>set_expected_mail (ActionMailer::TestCase)</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/action_mailer/test_case.rb, line 45</span>
      <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_expected_mail</span>
        <span class="ruby-ivar">@expected</span> = <span class="ruby-constant">TMail</span><span class="ruby-operator">::</span><span class="ruby-constant">Mail</span>.<span class="ruby-identifier">new</span>
        <span class="ruby-ivar">@expected</span>.<span class="ruby-identifier">set_content_type</span> <span class="ruby-value str">&quot;text&quot;</span>, <span class="ruby-value str">&quot;plain&quot;</span>, { <span class="ruby-value str">&quot;charset&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">charset</span> }
        <span class="ruby-ivar">@expected</span>.<span class="ruby-identifier">mime_version</span> = <span class="ruby-value str">'1.0'</span>
      <span class="ruby-keyword kw">end</span></pre>
</body>
</html>