doc/Safubot/Test.html in safubot-0.0.2 vs doc/Safubot/Test.html in safubot-0.0.3
- old
+ new
@@ -75,15 +75,27 @@
<dd class="r1 last">lib/safubot/test_helper.rb</dd>
</dl>
<div class="clear"></div>
+<h2>Overview</h2><div class="docstring">
+ <div class="discussion">
+ <p>
+Helpful methods for testing either via RSpec or IRB.
+</p>
+ </div>
+</div>
+<div class="tags">
+
+</div>
+
+
<h2>
Class Method Summary
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
</h2>
@@ -104,11 +116,14 @@
- <span class="summary_desc"><div class='inline'></div></span>
+ <span class="summary_desc"><div class='inline'><p>
+Switches to the “safubot_testing” database and clears all data.
+</p>
+</div></span>
</li>
<li class="public ">
@@ -125,11 +140,14 @@
- <span class="summary_desc"><div class='inline'></div></span>
+ <span class="summary_desc"><div class='inline'><p>
+Creates a Query-sourced testing Request.
+</p>
+</div></span>
</li>
</ul>
@@ -146,28 +164,40 @@
+ (<tt>Object</tt>) <strong>clean_environment</strong>
-</p><table class="source_code">
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Switches to the “safubot_testing” database and clears all data.
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+
+
+</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-20
-21
22
23
24
25
26
27
-28</pre>
+28
+29
+30</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 20</span>
+ <pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 22</span>
<span class='kw'>def</span> <span class='id clean_environment'>clean_environment</span>
<span class='const'>MongoMapper</span><span class='period'>.</span><span class='id database'>database</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>safubot_testing</span><span class='tstring_end'>"</span></span>
<span class='const'>Request</span><span class='period'>.</span><span class='id destroy_all'>destroy_all</span>
<span class='const'>Query</span><span class='period'>.</span><span class='id destroy_all'>destroy_all</span>
@@ -186,22 +216,55 @@
+ (<tt>Object</tt>) <strong>request</strong>(text)
-</p><table class="source_code">
+</p><div class="docstring">
+ <div class="discussion">
+ <p>
+Creates a Query-sourced testing Request.
+</p>
+
+
+ </div>
+</div>
+<div class="tags">
+ <h3>Parameters:</h3>
+<ul class="param">
+
+ <li>
+
+ <span class='name'>text</span>
+
+
+ <span class='type'></span>
+
+
+
+ —
+ <div class='inline'><p>
+The body of the Request.
+</p>
+</div>
+
+ </li>
+
+</ul>
+
+
+</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-30
-31
-32</pre>
+34
+35
+36</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 30</span>
+ <pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 34</span>
<span class='kw'>def</span> <span class='id request'>request</span><span class='lparen'>(</span><span class='id text'>text</span><span class='rparen'>)</span>
<span class='const'>Query</span><span class='period'>.</span><span class='id create'>create</span><span class='lparen'>(</span><span class='symbol'>:user</span> <span class='op'>=></span> <span class='const'>KnownUser</span><span class='period'>.</span><span class='id by_name'>by_name</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>testing</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:text</span> <span class='op'>=></span> <span class='id text'>text</span><span class='rparen'>)</span><span class='period'>.</span><span class='id make_request'>make_request</span>
<span class='kw'>end</span></pre>
</td>
@@ -212,10 +275,10 @@
</div>
</div>
<div id="footer">
- Generated on Mon Nov 28 20:20:04 2011 by
+ Generated on Tue Nov 29 11:44:04 2011 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.7.3 (ruby-1.9.2).
</div>
</body>
\ No newline at end of file