Commit 5ee99ec6 authored by John E. Vincent's avatar John E. Vincent

missed these

parent 082986ea
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/noah/applications.rb</title>
<link href="screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="rcov.js"></script>
</head>
<body>
<h1>Noah C0 Coverage Information - RCov</h1>
<h2>lib/noah/applications.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-noah-applications_rb.html">lib/noah/applications.rb</a></td>
<td class='right_align'><tt>46</tt></td>
<td class='right_align'><tt>39</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>73.91%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:74px"></div>
<div class="uncovered" style="width:26px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>69.23%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:69px"></div>
<div class="uncovered" style="width:31px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="uncovered">
<td><pre><a name="line1">1</a> class Application &lt; Ohm::Model</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line2">2</a> include Ohm::Typecast</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line3">3</a> include Ohm::Timestamping</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line4">4</a> include Ohm::Callbacks</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line5">5</a> include Ohm::ExtraValidations</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line6">6</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line7">7</a> attribute :name</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line8">8</a> collection :configurations, Configuration</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line9">9</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line10">10</a> index :name</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line11">11</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line12">12</a> def validate</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line13">13</a> assert_present :name</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line14">14</a> assert_unique :name</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line15">15</a> end</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line16">16</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line17">17</a> def to_hash</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line18">18</a> arr = []</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line19">19</a> configurations.sort.each {|c| arr &lt;&lt; c.to_hash}</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line20">20</a> super.merge(:name =&gt; name, :updated_at =&gt; updated_at, :configurations =&gt; arr)</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line21">21</a> end</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line22">22</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line23">23</a> def is_new?</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line24">24</a> self.created_at == self.updated_at</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line25">25</a> end</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line26">26</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line27">27</a> class &lt;&lt; self</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line28">28</a> def find_or_create(opts = {})</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line29">29</a> begin</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line30">30</a> find(opts).first.nil? ? (app = create(opts)) : (app = find(opts).first)</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line31">31</a> if app.valid?</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line32">32</a> app.save</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line33">33</a> end</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line34">34</a> app</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line35">35</a> rescue Exception =&gt; e</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line36">36</a> e.message</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line37">37</a> end</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line38">38</a> end</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line39">39</a> end</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line40">40</a> end</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line41">41</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line42">42</a> class Applications</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line43">43</a> def self.all(options = {})</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line44">44</a> options.empty? ? Application.all.sort : Application.find(options).sort</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line45">45</a> end</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line46">46</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2011-02-08 01:54:20 -0500 with <a href="http://github.com/relevance/rcov">rcov 0.9.8</a></p>
</body>
</html>
This diff is collapsed.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/noah/models.rb</title>
<link href="screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="rcov.js"></script>
</head>
<body>
<h1>Noah C0 Coverage Information - RCov</h1>
<h2>lib/noah/models.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="lib-noah-models_rb.html">lib/noah/models.rb</a></td>
<td class='right_align'><tt>5</tt></td>
<td class='right_align'><tt>5</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>80.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:80px"></div>
<div class="uncovered" style="width:20px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>80.00%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:80px"></div>
<div class="uncovered" style="width:20px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="uncovered">
<td><pre><a name="line1">1</a> require File.join(File.dirname(__FILE__),'hosts')</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line2">2</a> require File.join(File.dirname(__FILE__),'services')</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line3">3</a> require File.join(File.dirname(__FILE__),'applications')</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line4">4</a> require File.join(File.dirname(__FILE__),'configurations')</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line5">5</a> require File.join(File.dirname(__FILE__),'watchers')</pre></td>
</tr>
</tbody>
</table>
<p>Generated on 2011-02-08 01:54:21 -0500 with <a href="http://github.com/relevance/rcov">rcov 0.9.8</a></p>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment