coverage/index.html in trusty-cms-3.1.2 vs coverage/index.html in trusty-cms-3.1.3

- old
+ new

@@ -1,33 +1,33 @@ <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>Code coverage for Trusty-cms</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <script src='./assets/0.10.1/application.js' type='text/javascript'></script> - <link href='./assets/0.10.1/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'> - <link rel="shortcut icon" type="image/png" href="./assets/0.10.1/favicon_yellow.png" /> - <link rel="icon" type="image/png" href="./assets/0.10.1/favicon.png" /> + <script src='./assets/0.10.2/application.js' type='text/javascript'></script> + <link href='./assets/0.10.2/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'> + <link rel="shortcut icon" type="image/png" href="./assets/0.10.2/favicon_yellow.png" /> + <link rel="icon" type="image/png" href="./assets/0.10.2/favicon.png" /> </head> <body> <div id="loading"> - <img src="./assets/0.10.1/loading.gif" alt="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="2017-08-08T07:16:23-04:00">2017-08-08T07:16:23-04:00</abbr></div> + <div class="timestamp">Generated <abbr class="timeago" title="2017-10-13T15:15:39-04:00">2017-10-13T15:15:39-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.89%</span></span> covered at <span class="covered_strength"> <span class="green"> - 14.68 + 14.77 </span> </span> hits/line) </h2> <a name="AllFiles"></a> <div> @@ -85,11 +85,11 @@ <td class="red strong">51.39 %</td> <td>114</td> <td>72</td> <td>37</td> <td>35</td> - <td>5.4</td> + <td>6.4</td> </tr> <tr> <td class="strong"><a href="#ffc0ea6768b2d6709d4896039faa4e70ac4ac143" class="src_link" title="app/controllers/admin/preferences_controller.rb">app/controllers/admin/preferences_controller.rb</a></td> <td class="yellow strong">84.21 %</td> @@ -295,11 +295,11 @@ <td class="yellow strong">89.33 %</td> <td>140</td> <td>75</td> <td>67</td> <td>8</td> - <td>3.4</td> + <td>4.2</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> @@ -355,11 +355,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.5</td> </tr> <tr> <td class="strong"><a href="#6b2b4e11dc5e71e9e79d239984b30738d065981e" class="src_link" title="lib/login_system.rb">lib/login_system.rb</a></td> <td class="red strong">78.95 %</td> @@ -568,11 +568,11 @@ </div> <div id="footer"> Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.13.0 - and simplecov-html v0.10.1<br/> + and simplecov-html v0.10.2<br/> using RSpec </div> <div class="source_files"> @@ -1431,12 +1431,12 @@ <span class="hits">1</span> <code class="ruby"> def model_class</code> </li> - <li class="covered" data-hits="148" data-linenumber="63"> - <span class="hits">148</span> + <li class="covered" data-hits="222" data-linenumber="63"> + <span class="hits">222</span> <code class="ruby"> if Page.descendants.any? { |d| d.to_s == params[:page_class] }</code> </li> <li class="missed" data-hits="0" data-linenumber="64"> @@ -3437,12 +3437,12 @@ <span class="hits">1</span> <code class="ruby"> def permitted_params</code> </li> - <li class="covered" data-hits="18" data-linenumber="244"> - <span class="hits">18</span> + <li class="covered" data-hits="20" data-linenumber="244"> + <span class="hits">20</span> <code class="ruby"> model_symbols = ActiveRecord::Base.descendants.map{|a| a.name.underscore.to_sym}</code> </li> <li class="covered" data-hits="14" data-linenumber="245"> @@ -8850,12 +8850,12 @@ <span class="hits">1</span> <code class="ruby"> def view</code> </li> - <li class="covered" data-hits="39" data-linenumber="21"> - <span class="hits">39</span> + <li class="covered" data-hits="48" data-linenumber="21"> + <span class="hits">48</span> <code class="ruby"> @view</code> </li> <li class="never" data-hits="" data-linenumber="22"> @@ -8958,18 +8958,18 @@ <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="18" data-linenumber="39"> - <span class="hits">18</span> + <li class="covered" data-hits="27" data-linenumber="39"> + <span class="hits">27</span> <code class="ruby"> begin</code> </li> - <li class="covered" data-hits="18" data-linenumber="40"> - <span class="hits">18</span> + <li class="covered" data-hits="27" data-linenumber="40"> + <span class="hits">27</span> <code class="ruby"> name.constantize</code> </li> <li class="never" data-hits="" data-linenumber="41"> @@ -9072,12 +9072,12 @@ <span class="hits">3</span> <code class="ruby"> (allowed_child_classes - [self.class.default_child]).map do |child|</code> </li> - <li class="covered" data-hits="3" data-linenumber="58"> - <span class="hits">3</span> + <li class="covered" data-hits="6" data-linenumber="58"> + <span class="hits">6</span> <code class="ruby"> menu_item(child)</code> </li> <li class="never" data-hits="" data-linenumber="59"> @@ -9426,12 +9426,12 @@ <span class="hits">1</span> <code class="ruby"> def clean_page_description(page_class)</code> </li> - <li class="covered" data-hits="6" data-linenumber="117"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="117"> + <span class="hits">9</span> <code class="ruby"> page_class.description.to_s.strip.gsub(/\t/,&#39;&#39;).gsub(/\s+/,&#39; &#39;)</code> </li> <li class="never" data-hits="" data-linenumber="118"> @@ -9450,12 +9450,12 @@ <span class="hits">1</span> <code class="ruby"> def menu_item(child_class)</code> </li> - <li class="covered" data-hits="6" data-linenumber="121"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="121"> + <span class="hits">9</span> <code class="ruby"> view.content_tag(:li, menu_link(child_class))</code> </li> <li class="never" data-hits="" data-linenumber="122"> @@ -9474,30 +9474,30 @@ <span class="hits">1</span> <code class="ruby"> def menu_link(child_class)</code> </li> - <li class="covered" data-hits="6" data-linenumber="125"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="125"> + <span class="hits">9</span> <code class="ruby"> title = clean_page_description(child_class)</code> </li> - <li class="covered" data-hits="6" data-linenumber="126"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="126"> + <span class="hits">9</span> <code class="ruby"> path = view.new_admin_page_child_path(self, :page_class =&gt; child_class.name)</code> </li> - <li class="covered" data-hits="6" data-linenumber="127"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="127"> + <span class="hits">9</span> <code class="ruby"> text = link_text_for_child_class(child_class.name)</code> </li> - <li class="covered" data-hits="6" data-linenumber="128"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="128"> + <span class="hits">9</span> <code class="ruby"> view.link_to(text, path, :title =&gt; title)</code> </li> <li class="never" data-hits="" data-linenumber="129"> @@ -9516,12 +9516,12 @@ <span class="hits">1</span> <code class="ruby"> def link_text_for_child_class(given_class_name)</code> </li> - <li class="covered" data-hits="6" data-linenumber="132"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="132"> + <span class="hits">9</span> <code class="ruby"> translation_key = if given_class_name == &#39;Page&#39; || given_class_name.blank?</code> </li> <li class="covered" data-hits="3" data-linenumber="133"> @@ -9534,30 +9534,30 @@ <code class="ruby"> else</code> </li> - <li class="covered" data-hits="3" data-linenumber="135"> - <span class="hits">3</span> + <li class="covered" data-hits="6" data-linenumber="135"> + <span class="hits">6</span> <code class="ruby"> given_class_name.sub(&#39;Page&#39;,&#39;&#39;).underscore</code> </li> <li class="never" data-hits="" data-linenumber="136"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="6" data-linenumber="137"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="137"> + <span class="hits">9</span> <code class="ruby"> fallback = given_class_name == &#39;Page&#39; ? &#39;Page&#39; : given_class_name.sub(&#39;Page&#39;,&#39;&#39;).titleize</code> </li> - <li class="covered" data-hits="6" data-linenumber="138"> - <span class="hits">6</span> + <li class="covered" data-hits="9" data-linenumber="138"> + <span class="hits">9</span> <code class="ruby"> I18n.t(translation_key, :default =&gt; fallback)</code> </li> <li class="never" data-hits="" data-linenumber="139"> @@ -10890,12 +10890,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="7" data-linenumber="12"> + <span class="hits">7</span> <code class="ruby"> self.class.current_user</code> </li> <li class="never" data-hits="" data-linenumber="13"> @@ -10908,12 +10908,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="7" data-linenumber="15"> + <span class="hits">7</span> <code class="ruby"> Thread.current[:current_user]</code> </li> <li class="never" data-hits="" data-linenumber="16"> @@ -10932,11 +10932,11 @@ <span class="hits">1</span> <code class="ruby"> def before_create(model)</code> </li> - <li class="covered" data-hits="7" data-linenumber="19"> - <span class="hits">7</span> + <li class="covered" data-hits="6" data-linenumber="19"> + <span class="hits">6</span> <code class="ruby"> model.created_by = self.current_user</code> </li> <li class="never" data-hits="" data-linenumber="20">