coverage/index.html in trusty-cms-3.5.2 vs coverage/index.html in trusty-cms-3.5.3

- old
+ new

@@ -12,31 +12,31 @@ <body> <div id="loading"> <img src="./assets/0.10.2/loading.gif" alt="loading"/> </div> <div id="wrapper" style="display:none;"> - <div class="timestamp">Generated <abbr class="timeago" title="2018-09-12T10:46:45-04:00">2018-09-12T10:46:45-04:00</abbr></div> + <div class="timestamp">Generated <abbr class="timeago" title="2019-04-09T09:28:35-04:00">2019-04-09T09:28:35-04:00</abbr></div> <ul class="group_tabs"></ul> <div id="content"> <div class="file_list_container" id="AllFiles"> <h2> <span class="group_name">All Files</span> - (<span class="covered_percent"><span class="yellow">82.08%</span></span> + (<span class="covered_percent"><span class="yellow">82.11%</span></span> covered at <span class="covered_strength"> <span class="green"> - 6.62 + 6.59 </span> </span> hits/line) </h2> <a name="AllFiles"></a> <div> <b>42</b> files in total. - <b>904</b> relevant lines. - <span class="green"><b>742</b> lines covered</span> and - <span class="red"><b>162</b> lines missed </span> + <b>900</b> relevant lines. + <span class="green"><b>739</b> lines covered</span> and + <span class="red"><b>161</b> lines missed </span> </div> <table class="file_list"> <thead> <tr> <th>File</th> @@ -50,16 +50,16 @@ </thead> <tbody> <tr> <td class="strong"><a href="#62cf759e434708fbeb746a55de33bb36b1e37ec4" class="src_link" title="app/controllers/admin/configuration_controller.rb">app/controllers/admin/configuration_controller.rb</a></td> - <td class="red strong">79.17 %</td> + <td class="red strong">78.26 %</td> <td>50</td> - <td>24</td> - <td>19</td> + <td>23</td> + <td>18</td> <td>5</td> - <td>2.1</td> + <td>2.2</td> </tr> <tr> <td class="strong"><a href="#a6725cae8a2e936c945c1e25371c3c620d3a657c" class="src_link" title="app/controllers/admin/extensions_controller.rb">app/controllers/admin/extensions_controller.rb</a></td> <td class="red strong">60.0 %</td> @@ -110,15 +110,15 @@ <td>10.2</td> </tr> <tr> <td class="strong"><a href="#74f1b1eb56997c2466627c97014c6f3d671f7c39" class="src_link" title="app/controllers/site_controller.rb">app/controllers/site_controller.rb</a></td> - <td class="red strong">47.37 %</td> + <td class="red strong">48.21 %</td> <td>104</td> - <td>57</td> + <td>56</td> <td>27</td> - <td>30</td> + <td>29</td> <td>3.3</td> </tr> <tr> <td class="strong"><a href="#cc03ad26247a3bdcc329e31ea73e08a283b8ea36" class="src_link" title="app/helpers/admin/configuration_helper.rb">app/helpers/admin/configuration_helper.rb</a></td> @@ -220,16 +220,16 @@ <td>4.1</td> </tr> <tr> <td class="strong"><a href="#ff27dea68c6c1d7ca8aec7a74bb28dbc78c3517b" class="src_link" title="app/models/menu_renderer.rb">app/models/menu_renderer.rb</a></td> - <td class="yellow strong">89.33 %</td> + <td class="yellow strong">89.04 %</td> <td>140</td> - <td>75</td> - <td>67</td> + <td>73</td> + <td>65</td> <td>8</td> - <td>4.2</td> + <td>3.8</td> </tr> <tr> <td class="strong"><a href="#49c0d6cdd80063237788139caa212ff3b99f0569" class="src_link" title="app/models/page_field.rb">app/models/page_field.rb</a></td> <td class="green strong">100.0 %</td> @@ -255,11 +255,11 @@ <td class="green strong">100.0 %</td> <td>41</td> <td>18</td> <td>18</td> <td>0</td> - <td>11.6</td> + <td>10.6</td> </tr> <tr> <td class="strong"><a href="#f75912d7024ea4b17e23b6212deece9f8d099be8" class="src_link" title="app/models/text_filter.rb">app/models/text_filter.rb</a></td> <td class="red strong">62.5 %</td> @@ -285,11 +285,11 @@ <td class="green strong">100.0 %</td> <td>25</td> <td>14</td> <td>14</td> <td>0</td> - <td>21.7</td> + <td>21.9</td> </tr> <tr> <td class="strong"><a href="#11328cfb263cce0e77b424d30c11127e715be20e" class="src_link" title="lib/trusty_cms/admin_ui/region_partials.rb">lib/trusty_cms/admin_ui/region_partials.rb</a></td> <td class="yellow strong">83.33 %</td> @@ -355,11 +355,11 @@ <td class="green strong">100.0 %</td> <td>17</td> <td>4</td> <td>4</td> <td>0</td> - <td>1.0</td> + <td>1.8</td> </tr> <tr> <td class="strong"><a href="#13f9da5e4654a837d7a7fa4bf4dfe846817dcbe8" class="src_link" title="spec/factories/page.rb">spec/factories/page.rb</a></td> <td class="green strong">94.12 %</td> @@ -487,14 +487,14 @@ <div class="source_files"> <div class="source_table" id="62cf759e434708fbeb746a55de33bb36b1e37ec4"> <div class="header"> <h3>app/controllers/admin/configuration_controller.rb</h3> - <h4><span class="red">79.17 %</span> covered</h4> + <h4><span class="red">78.26 %</span> covered</h4> <div> - <b>24</b> relevant lines. - <span class="green"><b>19</b> lines covered</span> and + <b>23</b> relevant lines. + <span class="green"><b>18</b> lines covered</span> and <span class="red"><b>5</b> lines missed.</span> </div> </div> <pre> @@ -648,13 +648,13 @@ <span class="hits">1</span> <code class="ruby"> if params[:trusty_config]</code> </li> - <li class="covered" data-hits="1" data-linenumber="26"> - <span class="hits">1</span> + <li class="never" data-hits="" data-linenumber="26"> + <code class="ruby"> begin</code> </li> <li class="covered" data-hits="1" data-linenumber="27"> <span class="hits">1</span> @@ -2389,15 +2389,15 @@ <div class="source_table" id="74f1b1eb56997c2466627c97014c6f3d671f7c39"> <div class="header"> <h3>app/controllers/site_controller.rb</h3> - <h4><span class="red">47.37 %</span> covered</h4> + <h4><span class="red">48.21 %</span> covered</h4> <div> - <b>57</b> relevant lines. + <b>56</b> relevant lines. <span class="green"><b>27</b> lines covered</span> and - <span class="red"><b>30</b> lines missed.</span> + <span class="red"><b>29</b> lines missed.</span> </div> </div> <pre> <ol> @@ -2850,11 +2850,11 @@ <code class="ruby"> klass_name = &quot;TrustyCms::#{page.class}ResponseCacheDirector&quot;</code> </li> - <li class="missed" data-hits="0" data-linenumber="76"> + <li class="never" data-hits="" data-linenumber="76"> <code class="ruby"> begin</code> </li> @@ -3801,17 +3801,17 @@ <code class="ruby"> unless @expanded_rows</code> </li> - <li class="missed" data-hits="0" data-linenumber="38"> + <li class="never" data-hits="" data-linenumber="38"> <code class="ruby"> @expanded_rows = case</code> </li> - <li class="never" data-hits="" data-linenumber="39"> + <li class="missed" data-hits="0" data-linenumber="39"> <code class="ruby"> when rows = cookies[:expanded_rows]</code> </li> @@ -4386,11 +4386,11 @@ <code class="ruby"> value = t(&quot;desc.#{tag_name.gsub(&#39;:&#39;,&#39;-&#39;)}&quot;).match(&#39;desc&#39;) ? description : t(&quot;desc.#{tag_name.gsub(&#39;:&#39;,&#39;-&#39;)}&quot;)</code> </li> - <li class="never" data-hits="" data-linenumber="8"> + <li class="missed" data-hits="0" data-linenumber="8"> <code class="ruby"> output &lt;&lt; render(:partial =&gt; &quot;admin/references/tag_reference.haml&quot;,</code> </li> @@ -4404,11 +4404,11 @@ <code class="ruby"> :description =&gt; RedCloth.new(TrustyCms::Taggable::Util.strip_leading_whitespace(value)).to_html</code> </li> - <li class="missed" data-hits="0" data-linenumber="11"> + <li class="never" data-hits="" data-linenumber="11"> <code class="ruby"> })</code> </li> @@ -4566,11 +4566,11 @@ <span class="hits">1</span> <code class="ruby"> def filter</code> </li> - <li class="never" data-hits="" data-linenumber="38"> + <li class="missed" data-hits="0" data-linenumber="38"> <code class="ruby"> @filter ||= begin</code> </li> @@ -4578,11 +4578,11 @@ <code class="ruby"> TextFilter.find_descendant(params[:filter_name])</code> </li> - <li class="missed" data-hits="0" data-linenumber="40"> + <li class="never" data-hits="" data-linenumber="40"> <code class="ruby"> end</code> </li> @@ -4866,14 +4866,14 @@ <div class="source_table" id="ff27dea68c6c1d7ca8aec7a74bb28dbc78c3517b"> <div class="header"> <h3>app/models/menu_renderer.rb</h3> - <h4><span class="yellow">89.33 %</span> covered</h4> + <h4><span class="yellow">89.04 %</span> covered</h4> <div> - <b>75</b> relevant lines. - <span class="green"><b>67</b> lines covered</span> and + <b>73</b> relevant lines. + <span class="green"><b>65</b> lines covered</span> and <span class="red"><b>8</b> lines missed.</span> </div> </div> <pre> @@ -5105,13 +5105,13 @@ <span class="hits">9</span> <code class="ruby"> (allowed_children_cache.to_s.split(&#39;,&#39;) - Array(excluded_class_names)).map do |name|</code> </li> - <li class="covered" data-hits="27" data-linenumber="39"> - <span class="hits">27</span> + <li class="never" data-hits="" data-linenumber="39"> + <code class="ruby"> begin</code> </li> <li class="covered" data-hits="27" data-linenumber="40"> <span class="hits">27</span> @@ -5135,13 +5135,13 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="9" data-linenumber="44"> - <span class="hits">9</span> + <li class="never" data-hits="" data-linenumber="44"> + <code class="ruby"> end.compact</code> </li> <li class="never" data-hits="" data-linenumber="45"> @@ -5960,12 +5960,12 @@ <span class="hits">1</span> <code class="ruby"> def symbol</code> </li> - <li class="covered" data-hits="61" data-linenumber="10"> - <span class="hits">61</span> + <li class="covered" data-hits="53" data-linenumber="10"> + <span class="hits">53</span> <code class="ruby"> @name.to_s.downcase.intern</code> </li> <li class="never" data-hits="" data-linenumber="11"> @@ -5984,12 +5984,12 @@ <span class="hits">1</span> <code class="ruby"> def self.[](value)</code> </li> - <li class="covered" data-hits="80" data-linenumber="14"> - <span class="hits">80</span> + <li class="covered" data-hits="70" data-linenumber="14"> + <span class="hits">70</span> <code class="ruby"> @@statuses.find { |status| status.symbol == value.to_s.downcase.intern }</code> </li> <li class="never" data-hits="" data-linenumber="15"> @@ -6098,19 +6098,19 @@ <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="33"> - <span class="hits">1</span> + <li class="never" data-hits="" data-linenumber="33"> + <code class="ruby"> @@statuses = [</code> </li> - <li class="never" data-hits="" data-linenumber="34"> + <li class="covered" data-hits="1" data-linenumber="34"> + <span class="hits">1</span> - <code class="ruby"> Status.new(:id =&gt; 1, :name =&gt; &#39;Draft&#39; ),</code> </li> <li class="never" data-hits="" data-linenumber="35"> @@ -7037,12 +7037,12 @@ <span class="hits">1</span> <code class="ruby"> def current_user</code> </li> - <li class="covered" data-hits="8" data-linenumber="12"> - <span class="hits">8</span> + <li class="covered" data-hits="9" data-linenumber="12"> + <span class="hits">9</span> <code class="ruby"> self.class.current_user</code> </li> <li class="never" data-hits="" data-linenumber="13"> @@ -7055,12 +7055,12 @@ <span class="hits">1</span> <code class="ruby"> def self.current_user</code> </li> - <li class="covered" data-hits="8" data-linenumber="15"> - <span class="hits">8</span> + <li class="covered" data-hits="9" data-linenumber="15"> + <span class="hits">9</span> <code class="ruby"> Thread.current[:current_user]</code> </li> <li class="never" data-hits="" data-linenumber="16"> @@ -7079,12 +7079,12 @@ <span class="hits">1</span> <code class="ruby"> def before_create(model)</code> </li> - <li class="covered" data-hits="6" data-linenumber="19"> - <span class="hits">6</span> + <li class="covered" data-hits="7" data-linenumber="19"> + <span class="hits">7</span> <code class="ruby"> model.created_by = self.current_user</code> </li> <li class="never" data-hits="" data-linenumber="20"> @@ -7544,11 +7544,11 @@ <code class="ruby"> {</code> </li> - <li class="never" data-hits="" data-linenumber="20"> + <li class="missed" data-hits="0" data-linenumber="20"> <code class="ruby"> :page =&gt; params[WillPaginate::ViewHelpers.pagination_options[:param_name]] || 1,</code> </li> @@ -7556,11 +7556,11 @@ <code class="ruby"> :per_page =&gt; params[WillPaginate::ViewHelpers.pagination_options[:per_page_param_name]] || TrustyCms::Config[&#39;pagination.per_page&#39;] || 20</code> </li> - <li class="missed" data-hits="0" data-linenumber="22"> + <li class="never" data-hits="" data-linenumber="22"> <code class="ruby"> }</code> </li> @@ -8205,17 +8205,17 @@ </li> <li class="covered" data-hits="1" data-linenumber="4"> <span class="hits">1</span> - <code class="ruby"> name &#39;Main Layout&#39;</code> + <code class="ruby"> name { &#39;Main Layout&#39; }</code> </li> - <li class="covered" data-hits="1" data-linenumber="5"> - <span class="hits">1</span> + <li class="covered" data-hits="4" data-linenumber="5"> + <span class="hits">4</span> - <code class="ruby"> content &lt;&lt;-CONTENT</code> + <code class="ruby"> content { &lt;&lt;-CONTENT }</code> </li> <li class="never" data-hits="" data-linenumber="6"> @@ -8320,11 +8320,11 @@ </li> <li class="covered" data-hits="1" data-linenumber="3"> <span class="hits">1</span> - <code class="ruby"> title &#39;Page&#39;</code> + <code class="ruby"> title { &#39;Page&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="4"> <span class="hits">1</span> @@ -8488,11 +8488,11 @@ </li> <li class="covered" data-hits="1" data-linenumber="31"> <span class="hits">1</span> - <code class="ruby"> status_id Status[:published].id</code> + <code class="ruby"> status_id { Status[:published].id }</code> </li> <li class="never" data-hits="" data-linenumber="32"> @@ -8596,29 +8596,29 @@ </li> <li class="covered" data-hits="1" data-linenumber="49"> <span class="hits">1</span> - <code class="ruby"> title &#39;Home&#39;</code> + <code class="ruby"> title { &#39;Home&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="50"> <span class="hits">1</span> - <code class="ruby"> slug &#39;/&#39;</code> + <code class="ruby"> slug { &#39;/&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="51"> <span class="hits">1</span> - <code class="ruby"> status_id Status[:published].id</code> + <code class="ruby"> status_id { Status[:published].id }</code> </li> <li class="covered" data-hits="1" data-linenumber="52"> <span class="hits">1</span> - <code class="ruby"> parent_id nil</code> + <code class="ruby"> parent_id { nil }</code> </li> <li class="never" data-hits="" data-linenumber="53"> @@ -8723,11 +8723,11 @@ </li> <li class="covered" data-hits="1" data-linenumber="4"> <span class="hits">1</span> - <code class="ruby"> name &#39;unnamed&#39;</code> + <code class="ruby"> name { &#39;unnamed&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="5"> <span class="hits">1</span> @@ -8784,29 +8784,29 @@ </li> <li class="covered" data-hits="1" data-linenumber="3"> <span class="hits">1</span> - <code class="ruby"> name &#39;User&#39;</code> + <code class="ruby"> name { &#39;User&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="4"> <span class="hits">1</span> - <code class="ruby"> email &#39;email@test.com&#39;</code> + <code class="ruby"> email { &#39;email@test.com&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="5"> <span class="hits">1</span> - <code class="ruby"> login &#39;user&#39;</code> + <code class="ruby"> login { &#39;user&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="6"> <span class="hits">1</span> - <code class="ruby"> password &#39;password&#39;</code> + <code class="ruby"> password { &#39;password&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="7"> <span class="hits">1</span> @@ -8826,29 +8826,29 @@ </li> <li class="covered" data-hits="1" data-linenumber="10"> <span class="hits">1</span> - <code class="ruby"> name &#39;Admin&#39;</code> + <code class="ruby"> name { &#39;Admin&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="11"> <span class="hits">1</span> - <code class="ruby"> login &#39;admin&#39;</code> + <code class="ruby"> login { &#39;admin&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="12"> <span class="hits">1</span> - <code class="ruby"> email &#39;admin@example.com&#39;</code> + <code class="ruby"> email { &#39;admin@example.com&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="13"> <span class="hits">1</span> - <code class="ruby"> admin true</code> + <code class="ruby"> admin { true }</code> </li> <li class="never" data-hits="" data-linenumber="14"> @@ -8868,23 +8868,23 @@ </li> <li class="covered" data-hits="1" data-linenumber="17"> <span class="hits">1</span> - <code class="ruby"> name &#39;Existing&#39;</code> + <code class="ruby"> name { &#39;Existing&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="18"> <span class="hits">1</span> - <code class="ruby"> login &#39;existing&#39;</code> + <code class="ruby"> login { &#39;existing&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="19"> <span class="hits">1</span> - <code class="ruby"> email &#39;existing@example.com&#39;</code> + <code class="ruby"> email { &#39;existing@example.com&#39; }</code> </li> <li class="never" data-hits="" data-linenumber="20"> @@ -8904,29 +8904,29 @@ </li> <li class="covered" data-hits="1" data-linenumber="23"> <span class="hits">1</span> - <code class="ruby"> name &#39;Designer&#39;</code> + <code class="ruby"> name { &#39;Designer&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="24"> <span class="hits">1</span> - <code class="ruby"> login &#39;designer&#39;</code> + <code class="ruby"> login { &#39;designer&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="25"> <span class="hits">1</span> - <code class="ruby"> email &#39;&#39;</code> + <code class="ruby"> email { &#39;&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="26"> <span class="hits">1</span> - <code class="ruby"> designer true</code> + <code class="ruby"> designer { true }</code> </li> <li class="never" data-hits="" data-linenumber="27"> @@ -8946,23 +8946,23 @@ </li> <li class="covered" data-hits="1" data-linenumber="30"> <span class="hits">1</span> - <code class="ruby"> name &#39;Non Admin&#39;</code> + <code class="ruby"> name { &#39;Non Admin&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="31"> <span class="hits">1</span> - <code class="ruby"> login &#39;non_admin&#39;</code> + <code class="ruby"> login { &#39;non_admin&#39; }</code> </li> <li class="covered" data-hits="1" data-linenumber="32"> <span class="hits">1</span> - <code class="ruby"> admin false</code> + <code class="ruby"> admin { false }</code> </li> <li class="never" data-hits="" data-linenumber="33"> @@ -10953,17 +10953,17 @@ <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="52"> - <span class="hits">1</span> + <li class="never" data-hits="" data-linenumber="52"> + <code class="ruby"> configs = [</code> </li> - <li class="never" data-hits="" data-linenumber="53"> - + <li class="covered" data-hits="1" data-linenumber="53"> + <span class="hits">1</span> <code class="ruby"> [&#39;admin.title&#39;, &#39;TrustyCMS&#39;],</code> </li> <li class="never" data-hits="" data-linenumber="54">