coverage/index.html in trusty-cms-3.0.0 vs coverage/index.html in trusty-cms-3.0.1

- old
+ new

@@ -1,42 +1,42 @@ <!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.0/application.js' type='text/javascript'></script> - <link href='./assets/0.10.0/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'> - <link rel="shortcut icon" type="image/png" href="./assets/0.10.0/favicon_yellow.png" /> - <link rel="icon" type="image/png" href="./assets/0.10.0/favicon.png" /> + <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" /> </head> <body> <div id="loading"> - <img src="./assets/0.10.0/loading.gif" alt="loading"/> + <img src="./assets/0.10.1/loading.gif" alt="loading"/> </div> <div id="wrapper" style="display:none;"> - <div class="timestamp">Generated <abbr class="timeago" title="2017-05-05T15:13:50-04:00">2017-05-05T15:13:50-04:00</abbr></div> + <div class="timestamp">Generated <abbr class="timeago" title="2017-06-14T09:05:34-04:00">2017-06-14T09:05:34-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.84%</span></span> + (<span class="covered_percent"><span class="yellow">82.69%</span></span> covered at <span class="covered_strength"> <span class="green"> - 14.75 + 14.49 </span> </span> hits/line) </h2> <a name="AllFiles"></a> <div> <b>51</b> files in total. - <b>1358</b> relevant lines. - <span class="green"><b>1125</b> lines covered</span> and - <span class="red"><b>233</b> lines missed </span> + <b>1363</b> relevant lines. + <span class="green"><b>1127</b> lines covered</span> and + <span class="red"><b>236</b> lines missed </span> </div> <table class="file_list"> <thead> <tr> <th>File</th> @@ -49,511 +49,511 @@ </tr> </thead> <tbody> <tr> - <td class="strong"><a href="#f599caf63215e126813bbd891071cc4dd1d3b8db" class="src_link" title="app/controllers/admin/configuration_controller.rb">app/controllers/admin/configuration_controller.rb</a></td> + <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>50</td> <td>24</td> <td>19</td> <td>5</td> <td>2.1</td> </tr> <tr> - <td class="strong"><a href="#17657aadafa48e20fcb3bd8e5e210965c961320a" class="src_link" title="app/controllers/admin/extensions_controller.rb">app/controllers/admin/extensions_controller.rb</a></td> + <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> <td>11</td> <td>5</td> <td>3</td> <td>2</td> <td>0.6</td> </tr> <tr> - <td class="strong"><a href="#21519a85f829e2fbd7235984e406553be64b6b27" class="src_link" title="app/controllers/admin/layouts_controller.rb">app/controllers/admin/layouts_controller.rb</a></td> + <td class="strong"><a href="#447268e306645459f370c88887f91d234443c15f" class="src_link" title="app/controllers/admin/layouts_controller.rb">app/controllers/admin/layouts_controller.rb</a></td> <td class="green strong">100.0 %</td> <td>8</td> <td>3</td> <td>3</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#12b0c87d1b29324b336517e5a0d2d4df2cc9de32" class="src_link" title="app/controllers/admin/pages_controller.rb">app/controllers/admin/pages_controller.rb</a></td> + <td class="strong"><a href="#eef04f79443b3c1cf5f1a94e49da169bb9bf9edf" class="src_link" title="app/controllers/admin/pages_controller.rb">app/controllers/admin/pages_controller.rb</a></td> <td class="red strong">51.39 %</td> <td>114</td> <td>72</td> <td>37</td> <td>35</td> - <td>5.4</td> + <td>5.1</td> </tr> <tr> - <td class="strong"><a href="#327c19329660164ad68bedbd54229068fb659364" class="src_link" title="app/controllers/admin/preferences_controller.rb">app/controllers/admin/preferences_controller.rb</a></td> + <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">82.35 %</td> <td>29</td> <td>17</td> <td>14</td> <td>3</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#977407fe9a2d9fadbb1030a030adcae347c6b0e4" class="src_link" title="app/controllers/admin/resource_controller.rb">app/controllers/admin/resource_controller.rb</a></td> - <td class="yellow strong">85.83 %</td> + <td class="strong"><a href="#f692fbf97e936f3bd45af3c90782168361ccc8cc" class="src_link" title="app/controllers/admin/resource_controller.rb">app/controllers/admin/resource_controller.rb</a></td> + <td class="yellow strong">86.07 %</td> <td>244</td> - <td>120</td> - <td>103</td> + <td>122</td> + <td>105</td> <td>17</td> - <td>5.7</td> + <td>5.4</td> </tr> <tr> - <td class="strong"><a href="#12f7b293396af1e7bb429783083e0914ad715492" class="src_link" title="app/controllers/admin/users_controller.rb">app/controllers/admin/users_controller.rb</a></td> + <td class="strong"><a href="#47ac572e0b34d388482c846744ee3f074340adf6" class="src_link" title="app/controllers/admin/users_controller.rb">app/controllers/admin/users_controller.rb</a></td> <td class="red strong">45.45 %</td> <td>40</td> <td>22</td> <td>10</td> <td>12</td> <td>0.5</td> </tr> <tr> - <td class="strong"><a href="#0548274635e28f0ade382b1fa914b469704b942f" class="src_link" title="app/controllers/admin/welcome_controller.rb">app/controllers/admin/welcome_controller.rb</a></td> + <td class="strong"><a href="#5c6640d980190f3dedb08432aaee8a53437ed042" class="src_link" title="app/controllers/admin/welcome_controller.rb">app/controllers/admin/welcome_controller.rb</a></td> <td class="green strong">93.33 %</td> <td>48</td> <td>30</td> <td>28</td> <td>2</td> <td>10.2</td> </tr> <tr> - <td class="strong"><a href="#24df5092852a2bbf884d9a6bfe4815b19056ea68" class="src_link" title="app/controllers/application_controller.rb">app/controllers/application_controller.rb</a></td> - <td class="yellow strong">82.69 %</td> + <td class="strong"><a href="#6e3b2ace708c0ac95ee9137a230e5edbd7b679cf" class="src_link" title="app/controllers/application_controller.rb">app/controllers/application_controller.rb</a></td> + <td class="yellow strong">81.13 %</td> <td>99</td> - <td>52</td> + <td>53</td> <td>43</td> - <td>9</td> - <td>34.0</td> + <td>10</td> + <td>33.0</td> </tr> <tr> - <td class="strong"><a href="#41a9856bd8ee68d9d8cbdb50d567363cd4411956" class="src_link" title="app/controllers/site_controller.rb">app/controllers/site_controller.rb</a></td> + <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>104</td> <td>57</td> <td>27</td> <td>30</td> <td>3.3</td> </tr> <tr> - <td class="strong"><a href="#9b973efca458788c05c2f1159ddf02033a2951e2" class="src_link" title="app/helpers/admin/configuration_helper.rb">app/helpers/admin/configuration_helper.rb</a></td> - <td class="green strong">90.48 %</td> + <td class="strong"><a href="#cc03ad26247a3bdcc329e31ea73e08a283b8ea36" class="src_link" title="app/helpers/admin/configuration_helper.rb">app/helpers/admin/configuration_helper.rb</a></td> + <td class="green strong">90.7 %</td> <td>81</td> - <td>42</td> - <td>38</td> + <td>43</td> + <td>39</td> <td>4</td> - <td>20.1</td> + <td>19.9</td> </tr> <tr> - <td class="strong"><a href="#a60b971bc58b9cda32471f0b9507a73bde5812c2" class="src_link" title="app/helpers/admin/extensions_helper.rb">app/helpers/admin/extensions_helper.rb</a></td> + <td class="strong"><a href="#0583e14b5869b1886c89eb809e50916c364b01a6" class="src_link" title="app/helpers/admin/extensions_helper.rb">app/helpers/admin/extensions_helper.rb</a></td> <td class="green strong">100.0 %</td> <td>2</td> <td>1</td> <td>1</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#f1b71910ed03a14a4fc4cce2c151914e870c1588" class="src_link" title="app/helpers/admin/layouts_helper.rb">app/helpers/admin/layouts_helper.rb</a></td> + <td class="strong"><a href="#780799138341b2bd1b7a771cb7ea1e4b8d371059" class="src_link" title="app/helpers/admin/layouts_helper.rb">app/helpers/admin/layouts_helper.rb</a></td> <td class="green strong">100.0 %</td> <td>3</td> <td>1</td> <td>1</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#352ca55a4f63d046b73dfeec822cb6b55487185d" class="src_link" title="app/helpers/admin/node_helper.rb">app/helpers/admin/node_helper.rb</a></td> + <td class="strong"><a href="#d40cbb4484c395b33e0e9bfafbbc256f5cb12015" class="src_link" title="app/helpers/admin/node_helper.rb">app/helpers/admin/node_helper.rb</a></td> <td class="red strong">67.39 %</td> <td>90</td> <td>46</td> <td>31</td> <td>15</td> <td>1.8</td> </tr> <tr> - <td class="strong"><a href="#07cdad2482cd19a92b6c1e2ed1c9d59c7b7b0a2a" class="src_link" title="app/helpers/admin/pages_helper.rb">app/helpers/admin/pages_helper.rb</a></td> + <td class="strong"><a href="#e7c59205a85110bb8c0b557be26848074903cea6" class="src_link" title="app/helpers/admin/pages_helper.rb">app/helpers/admin/pages_helper.rb</a></td> <td class="red strong">78.57 %</td> <td>25</td> <td>14</td> <td>11</td> <td>3</td> <td>2.3</td> </tr> <tr> - <td class="strong"><a href="#781d9751547430b5f53e45c0a93bbe1399c262fa" class="src_link" title="app/helpers/admin/preferences_helper.rb">app/helpers/admin/preferences_helper.rb</a></td> + <td class="strong"><a href="#0ee035f009c07e58e4e3d9a6704cb4ba16a813be" class="src_link" title="app/helpers/admin/preferences_helper.rb">app/helpers/admin/preferences_helper.rb</a></td> <td class="green strong">100.0 %</td> <td>3</td> <td>1</td> <td>1</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#f67b3ce4ba5dfcbf735dc48d7e441eb59a706783" class="src_link" title="app/helpers/admin/references_helper.rb">app/helpers/admin/references_helper.rb</a></td> + <td class="strong"><a href="#b9f79e9f0a5e53786231d79ecc59147566161e96" class="src_link" title="app/helpers/admin/references_helper.rb">app/helpers/admin/references_helper.rb</a></td> <td class="red strong">31.82 %</td> <td>46</td> <td>22</td> <td>7</td> <td>15</td> <td>0.3</td> </tr> <tr> - <td class="strong"><a href="#024a60096d1599d436568bc78004ef69dd2dbf20" class="src_link" title="app/helpers/admin/regions_helper.rb">app/helpers/admin/regions_helper.rb</a></td> + <td class="strong"><a href="#638a8fcd83a757c84c47eb75a0ac4b614cfc312e" class="src_link" title="app/helpers/admin/regions_helper.rb">app/helpers/admin/regions_helper.rb</a></td> <td class="green strong">94.74 %</td> <td>29</td> <td>19</td> <td>18</td> <td>1</td> - <td>140.6</td> + <td>137.9</td> </tr> <tr> - <td class="strong"><a href="#c36f97396afab7acde2fbe5a063b597d0b40f848" class="src_link" title="app/helpers/admin/resource_helper.rb">app/helpers/admin/resource_helper.rb</a></td> + <td class="strong"><a href="#cf38cad557129a7ce4c509abb1381d5e5a8ab33f" class="src_link" title="app/helpers/admin/resource_helper.rb">app/helpers/admin/resource_helper.rb</a></td> <td class="green strong">100.0 %</td> <td>2</td> <td>1</td> <td>1</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#b5b66cc2c9ceed019da04d236c18a819343756d7" class="src_link" title="app/helpers/admin/users_helper.rb">app/helpers/admin/users_helper.rb</a></td> + <td class="strong"><a href="#9c8cace70efe8f81b11255fbd8e7b3f365ea2cd5" class="src_link" title="app/helpers/admin/users_helper.rb">app/helpers/admin/users_helper.rb</a></td> <td class="red strong">33.33 %</td> <td>8</td> <td>6</td> <td>2</td> <td>4</td> <td>0.3</td> </tr> <tr> - <td class="strong"><a href="#84bf416885112758ab122c8fd5353d9486d18756" class="src_link" title="app/helpers/admin/welcome_helper.rb">app/helpers/admin/welcome_helper.rb</a></td> + <td class="strong"><a href="#3649edf8d6821131cad6b320472fa64882d39f89" class="src_link" title="app/helpers/admin/welcome_helper.rb">app/helpers/admin/welcome_helper.rb</a></td> <td class="green strong">100.0 %</td> <td>2</td> <td>1</td> <td>1</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#e8ceba241b247e5465fc091266d42235281b188b" class="src_link" title="app/helpers/application_helper.rb">app/helpers/application_helper.rb</a></td> - <td class="yellow strong">85.84 %</td> + <td class="strong"><a href="#364f910ecfbecc20b9050379b03e1addc3b0d788" class="src_link" title="app/helpers/application_helper.rb">app/helpers/application_helper.rb</a></td> + <td class="yellow strong">85.96 %</td> <td>213</td> - <td>113</td> - <td>97</td> + <td>114</td> + <td>98</td> <td>16</td> - <td>37.5</td> + <td>36.7</td> </tr> <tr> - <td class="strong"><a href="#a39d78c4fc93191de03915ecd09328b64f41b587" class="src_link" title="app/helpers/site_helper.rb">app/helpers/site_helper.rb</a></td> + <td class="strong"><a href="#7c4dfe079d96b6107e43f2787bd3eb7193bb8bd3" class="src_link" title="app/helpers/site_helper.rb">app/helpers/site_helper.rb</a></td> <td class="green strong">100.0 %</td> <td>2</td> <td>1</td> <td>1</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#24a478dc81cb312b20b3b6ff5d59f560307249ae" class="src_link" title="app/models/layout.rb">app/models/layout.rb</a></td> + <td class="strong"><a href="#ce84beeca2a57c15d5da143808d6f6e6eb85e430" class="src_link" title="app/models/layout.rb">app/models/layout.rb</a></td> <td class="green strong">100.0 %</td> <td>16</td> <td>9</td> <td>9</td> <td>0</td> <td>3.8</td> </tr> <tr> - <td class="strong"><a href="#0a4dd54b5173ef00862c0de3249f9062548ae0ed" class="src_link" title="app/models/menu_renderer.rb">app/models/menu_renderer.rb</a></td> + <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>140</td> <td>75</td> <td>67</td> <td>8</td> <td>3.4</td> </tr> <tr> - <td class="strong"><a href="#ee99abb95d276df654be743872e18cebe9cd7a76" class="src_link" title="app/models/page_field.rb">app/models/page_field.rb</a></td> + <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> <td>4</td> <td>3</td> <td>3</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#a305f6d4632c6314af7cf73ec29de843155d1b7c" class="src_link" title="app/models/page_part.rb">app/models/page_part.rb</a></td> + <td class="strong"><a href="#bd093ce629db1b261871cea3d4882c14d0edc165" class="src_link" title="app/models/page_part.rb">app/models/page_part.rb</a></td> <td class="yellow strong">90.0 %</td> <td>20</td> <td>10</td> <td>9</td> <td>1</td> - <td>2.7</td> + <td>2.2</td> </tr> <tr> - <td class="strong"><a href="#7388d43ba91c2a28d73545a6809e9d998ff37d21" class="src_link" title="app/models/status.rb">app/models/status.rb</a></td> + <td class="strong"><a href="#7bbb7a658abedc8bd08027742a2caa6df93f5d28" class="src_link" title="app/models/status.rb">app/models/status.rb</a></td> <td class="green strong">100.0 %</td> <td>41</td> <td>18</td> <td>18</td> <td>0</td> <td>11.6</td> </tr> <tr> - <td class="strong"><a href="#a3d0e95dccc6cc402608c949f61537589888f7d7" class="src_link" title="app/models/text_filter.rb">app/models/text_filter.rb</a></td> + <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> <td>31</td> <td>16</td> <td>10</td> <td>6</td> <td>0.6</td> </tr> <tr> - <td class="strong"><a href="#3245bdc6bf68c4799ba1a1df23d11fe7c154286c" class="src_link" title="app/models/user.rb">app/models/user.rb</a></td> + <td class="strong"><a href="#81a323fefe55031208374870d21243beae4e4565" class="src_link" title="app/models/user.rb">app/models/user.rb</a></td> <td class="yellow strong">82.69 %</td> <td>97</td> <td>52</td> <td>43</td> <td>9</td> <td>5.3</td> </tr> <tr> - <td class="strong"><a href="#224090690cd46a1b82b33b9876817d1d65b88e42" class="src_link" title="app/models/user_action_observer.rb">app/models/user_action_observer.rb</a></td> + <td class="strong"><a href="#8e9451d3350618c4464083f2173ec92c1cbba22a" class="src_link" title="app/models/user_action_observer.rb">app/models/user_action_observer.rb</a></td> <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.6</td> </tr> <tr> - <td class="strong"><a href="#d68b3b291e170af9809ca2750a36de47a6d1f510" class="src_link" title="lib/login_system.rb">lib/login_system.rb</a></td> + <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> <td>131</td> <td>76</td> <td>60</td> <td>16</td> - <td>51.3</td> + <td>50.8</td> </tr> <tr> - <td class="strong"><a href="#bfaefba265a613847eb17511c91aeb33124d3b07" class="src_link" title="lib/trusty_cms/admin_ui/region_partials.rb">lib/trusty_cms/admin_ui/region_partials.rb</a></td> + <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> <td>23</td> <td>12</td> <td>10</td> <td>2</td> - <td>105.9</td> + <td>104.1</td> </tr> <tr> - <td class="strong"><a href="#62bfb9f3ee6e8ac2730bec06c3df334c59428c84" class="src_link" title="lib/trusty_cms/available_locales.rb">lib/trusty_cms/available_locales.rb</a></td> + <td class="strong"><a href="#67d6fd9b574c8bb746cfbd6f1d3ec545d3671999" class="src_link" title="lib/trusty_cms/available_locales.rb">lib/trusty_cms/available_locales.rb</a></td> <td class="green strong">100.0 %</td> <td>19</td> <td>10</td> <td>10</td> <td>0</td> <td>79.3</td> </tr> <tr> - <td class="strong"><a href="#7ec5b193ca91bf0e62afdd726aa3bd77aba3eaaa" class="src_link" title="lib/trusty_cms/pagination/controller.rb">lib/trusty_cms/pagination/controller.rb</a></td> + <td class="strong"><a href="#0fb2f38734135f195dc6f55c5f8f8c33b0473268" class="src_link" title="lib/trusty_cms/pagination/controller.rb">lib/trusty_cms/pagination/controller.rb</a></td> <td class="green strong">92.86 %</td> <td>41</td> <td>14</td> <td>13</td> <td>1</td> <td>15.6</td> </tr> <tr> - <td class="strong"><a href="#bed13f447cc3293c2e33013bd302547d11b4f7be" class="src_link" title="lib/trusty_cms/resource_responses.rb">lib/trusty_cms/resource_responses.rb</a></td> + <td class="strong"><a href="#a2cfabfa5bf3002a51933c8f57119adc7d3d50d3" class="src_link" title="lib/trusty_cms/resource_responses.rb">lib/trusty_cms/resource_responses.rb</a></td> <td class="red strong">80.0 %</td> <td>121</td> <td>70</td> <td>56</td> <td>14</td> - <td>13.2</td> + <td>12.6</td> </tr> <tr> - <td class="strong"><a href="#caa7ec0029d51eb5c9bde0f679fcfcb448b3cd01" class="src_link" title="spec/controllers/application_controller_spec.rb">spec/controllers/application_controller_spec.rb</a></td> + <td class="strong"><a href="#ad28fc13353a228211160292c64c178f99d727f2" class="src_link" title="spec/controllers/application_controller_spec.rb">spec/controllers/application_controller_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>60</td> <td>40</td> <td>40</td> <td>0</td> <td>1.5</td> </tr> <tr> - <td class="strong"><a href="#337cbe163bc8bfdb5179ca7658af10ab02e6c229" class="src_link" title="spec/controllers/users_controller_spec.rb">spec/controllers/users_controller_spec.rb</a></td> + <td class="strong"><a href="#ac954dc35f7a221e8e355b693dff48716a41c94f" class="src_link" title="spec/controllers/users_controller_spec.rb">spec/controllers/users_controller_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>6</td> <td>3</td> <td>3</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#a27fd50274e4ef14baece85f6fc1ef2dff24481e" class="src_link" title="spec/controllers/welcome_controller_spec.rb">spec/controllers/welcome_controller_spec.rb</a></td> + <td class="strong"><a href="#3cc0a60749736c01618a4dac4a949ad19f971ebf" class="src_link" title="spec/controllers/welcome_controller_spec.rb">spec/controllers/welcome_controller_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>6</td> <td>3</td> <td>3</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#b8f4cd120e1d67bc8beac165fcf0bc0aa4481001" class="src_link" title="spec/factories/layout.rb">spec/factories/layout.rb</a></td> + <td class="strong"><a href="#2e372ce9efba322966a99a44ae3037847b4b7262" class="src_link" title="spec/factories/layout.rb">spec/factories/layout.rb</a></td> <td class="green strong">100.0 %</td> <td>17</td> <td>4</td> <td>4</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#52c1bc36f76c25cd101e46c7a3f7a84525c34f4b" class="src_link" title="spec/factories/page.rb">spec/factories/page.rb</a></td> + <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> <td>63</td> <td>34</td> <td>32</td> <td>2</td> <td>0.9</td> </tr> <tr> - <td class="strong"><a href="#a6d1c85998b8276583505169d707d367cc646d80" class="src_link" title="spec/factories/page_part.rb">spec/factories/page_part.rb</a></td> + <td class="strong"><a href="#43c889995f5a88d85b177672c6b7258a36da847d" class="src_link" title="spec/factories/page_part.rb">spec/factories/page_part.rb</a></td> <td class="green strong">100.0 %</td> <td>8</td> <td>4</td> <td>4</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#859825ade596f74e620e85f509164a957b8443d5" class="src_link" title="spec/factories/user.rb">spec/factories/user.rb</a></td> + <td class="strong"><a href="#bb53b254f55492b65c9488519a4a084dbbbdcae2" class="src_link" title="spec/factories/user.rb">spec/factories/user.rb</a></td> <td class="green strong">100.0 %</td> <td>35</td> <td>25</td> <td>25</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#5d70a4be91101af4532a395a46c8d595d80b8fb0" class="src_link" title="spec/features/admin_login_spec.rb">spec/features/admin_login_spec.rb</a></td> + <td class="strong"><a href="#6b795fc960ee17e8313e6ee8aacb5edd5dc7a92b" class="src_link" title="spec/features/admin_login_spec.rb">spec/features/admin_login_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>92</td> <td>52</td> <td>52</td> <td>0</td> <td>1.3</td> </tr> <tr> - <td class="strong"><a href="#a413cd7cc1724408d7a525553d4834265f04885e" class="src_link" title="spec/features/config_spec.rb">spec/features/config_spec.rb</a></td> + <td class="strong"><a href="#7add22ef7d3b00bd38c2c13423da3140645cd781" class="src_link" title="spec/features/config_spec.rb">spec/features/config_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>34</td> <td>21</td> <td>21</td> <td>0</td> <td>1.3</td> </tr> <tr> - <td class="strong"><a href="#7570781db4c3155e965463b658470da596800bab" class="src_link" title="spec/features/layouts_spec.rb">spec/features/layouts_spec.rb</a></td> + <td class="strong"><a href="#c35ea2aae277770e5b88ca23c8d45289ba333a8a" class="src_link" title="spec/features/layouts_spec.rb">spec/features/layouts_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>49</td> <td>33</td> <td>33</td> <td>0</td> <td>1.3</td> </tr> <tr> - <td class="strong"><a href="#d4d1a930f2f47b0ce0846efa1c917ebdf0bf2c69" class="src_link" title="spec/features/pages_spec.rb">spec/features/pages_spec.rb</a></td> - <td class="green strong">100.0 %</td> + <td class="strong"><a href="#00a8a76a40cbc43916d2f53c3e4536194342e0d1" class="src_link" title="spec/features/pages_spec.rb">spec/features/pages_spec.rb</a></td> + <td class="green strong">94.12 %</td> <td>55</td> <td>34</td> - <td>34</td> - <td>0</td> - <td>1.2</td> + <td>32</td> + <td>2</td> + <td>1.1</td> </tr> <tr> - <td class="strong"><a href="#f651b1e0d6b03b639bb1910679349dcb5c4906d8" class="src_link" title="spec/models/layout_spec.rb">spec/models/layout_spec.rb</a></td> + <td class="strong"><a href="#26d35c1978083211ae85513115d98df410ca5244" class="src_link" title="spec/models/layout_spec.rb">spec/models/layout_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>29</td> <td>19</td> <td>19</td> <td>0</td> <td>1.1</td> </tr> <tr> - <td class="strong"><a href="#5e6e398d1f9a901307ea91dab9ee535aa8c9a444" class="src_link" title="spec/rails_helper.rb">spec/rails_helper.rb</a></td> + <td class="strong"><a href="#a251c7546c3386878c1808f13620f76a33137872" class="src_link" title="spec/rails_helper.rb">spec/rails_helper.rb</a></td> <td class="green strong">95.83 %</td> <td>73</td> <td>24</td> <td>23</td> <td>1</td> <td>3.5</td> </tr> <tr> - <td class="strong"><a href="#e26ef2de8407666da2a4b16334e43c210a4e8735" class="src_link" title="spec/routing/welcome_routing_spec.rb">spec/routing/welcome_routing_spec.rb</a></td> + <td class="strong"><a href="#2faf97185635284b364ffa6cdbc7f168db049fdb" class="src_link" title="spec/routing/welcome_routing_spec.rb">spec/routing/welcome_routing_spec.rb</a></td> <td class="green strong">100.0 %</td> <td>18</td> <td>8</td> <td>8</td> <td>0</td> <td>1.0</td> </tr> <tr> - <td class="strong"><a href="#992b2e5d02f76777327edeb5263d89e2cab32d72" class="src_link" title="spec/support/custom_actions.rb">spec/support/custom_actions.rb</a></td> + <td class="strong"><a href="#e8c568b143982375ae5eef071184d4fa41bfa61f" class="src_link" title="spec/support/custom_actions.rb">spec/support/custom_actions.rb</a></td> <td class="green strong">100.0 %</td> <td>10</td> <td>5</td> <td>5</td> <td>0</td> @@ -568,17 +568,17 @@ </div> <div id="footer"> Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.13.0 - and simplecov-html v0.10.0<br/> + and simplecov-html v0.10.1<br/> using RSpec </div> <div class="source_files"> - <div class="source_table" id="f599caf63215e126813bbd891071cc4dd1d3b8db"> + <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> <div> <b>24</b> relevant lines. @@ -891,12 +891,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="17657aadafa48e20fcb3bd8e5e210965c961320a"> + <div class="source_table" id="a6725cae8a2e936c945c1e25371c3c620d3a657c"> <div class="header"> <h3>app/controllers/admin/extensions_controller.rb</h3> <h4><span class="red">60.0 %</span> covered</h4> <div> <b>5</b> relevant lines. @@ -975,12 +976,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="21519a85f829e2fbd7235984e406553be64b6b27"> + <div class="source_table" id="447268e306645459f370c88887f91d234443c15f"> <div class="header"> <h3>app/controllers/admin/layouts_controller.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>3</b> relevant lines. @@ -1041,12 +1043,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="12b0c87d1b29324b336517e5a0d2d4df2cc9de32"> + <div class="source_table" id="eef04f79443b3c1cf5f1a94e49da169bb9bf9edf"> <div class="header"> <h3>app/controllers/admin/pages_controller.rb</h3> <h4><span class="red">51.39 %</span> covered</h4> <div> <b>72</b> relevant lines. @@ -1200,18 +1203,18 @@ <span class="hits">1</span> <code class="ruby"> def index</code> </li> - <li class="covered" data-hits="22" data-linenumber="25"> - <span class="hits">22</span> + <li class="covered" data-hits="21" data-linenumber="25"> + <span class="hits">21</span> <code class="ruby"> @homepage = Page.find_by_parent_id(nil)</code> </li> - <li class="covered" data-hits="22" data-linenumber="26"> - <span class="hits">22</span> + <li class="covered" data-hits="21" data-linenumber="26"> + <span class="hits">21</span> <code class="ruby"> response_for :plural</code> </li> <li class="never" data-hits="" data-linenumber="27"> @@ -1428,24 +1431,24 @@ <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="138" data-linenumber="63"> + <span class="hits">138</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"> <code class="ruby"> verify_page_class(params[:page_class])</code> </li> - <li class="covered" data-hits="74" data-linenumber="65"> - <span class="hits">74</span> + <li class="covered" data-hits="69" data-linenumber="65"> + <span class="hits">69</span> <code class="ruby"> elsif params[:page_id]</code> </li> <li class="missed" data-hits="0" data-linenumber="66"> @@ -1458,12 +1461,12 @@ <code class="ruby"> else</code> </li> - <li class="covered" data-hits="74" data-linenumber="68"> - <span class="hits">74</span> + <li class="covered" data-hits="69" data-linenumber="68"> + <span class="hits">69</span> <code class="ruby"> Page</code> </li> <li class="never" data-hits="" data-linenumber="69"> @@ -1743,12 +1746,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="327c19329660164ad68bedbd54229068fb659364"> + <div class="source_table" id="ffc0ea6768b2d6709d4896039faa4e70ac4ac143"> <div class="header"> <h3>app/controllers/admin/preferences_controller.rb</h3> <h4><span class="yellow">82.35 %</span> covered</h4> <div> <b>17</b> relevant lines. @@ -1935,18 +1939,19 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="977407fe9a2d9fadbb1030a030adcae347c6b0e4"> + <div class="source_table" id="f692fbf97e936f3bd45af3c90782168361ccc8cc"> <div class="header"> <h3>app/controllers/admin/resource_controller.rb</h3> - <h4><span class="yellow">85.83 %</span> covered</h4> + <h4><span class="yellow">86.07 %</span> covered</h4> <div> - <b>120</b> relevant lines. - <span class="green"><b>103</b> lines covered</span> and + <b>122</b> relevant lines. + <span class="green"><b>105</b> lines covered</span> and <span class="red"><b>17</b> lines missed.</span> </div> </div> <pre> @@ -2202,12 +2207,12 @@ <span class="hits">1</span> <code class="ruby"> r.destroy.publish(:xml, :json) { head :deleted }</code> </li> - <li class="covered" data-hits="3" data-linenumber="43"> - <span class="hits">3</span> + <li class="covered" data-hits="2" data-linenumber="43"> + <span class="hits">2</span> <code class="ruby"> r.destroy.default { redirect_to continue_url(params) }</code> </li> <li class="never" data-hits="" data-linenumber="44"> @@ -2280,13 +2285,13 @@ <code class="ruby"> }, __FILE__, __LINE__</code> </li> - <li class="never" data-hits="" data-linenumber="56"> + <li class="covered" data-hits="1" data-linenumber="56"> + <span class="hits">1</span> - <code class="ruby"> end</code> </li> <li class="never" data-hits="" data-linenumber="57"> @@ -2334,13 +2339,13 @@ <code class="ruby"> }, __FILE__, __LINE__</code> </li> - <li class="never" data-hits="" data-linenumber="65"> + <li class="covered" data-hits="1" data-linenumber="65"> + <span class="hits">1</span> - <code class="ruby"> end</code> </li> <li class="never" data-hits="" data-linenumber="66"> @@ -2358,12 +2363,12 @@ <span class="hits">2</span> <code class="ruby"> model.destroy</code> </li> - <li class="covered" data-hits="2" data-linenumber="69"> - <span class="hits">2</span> + <li class="covered" data-hits="1" data-linenumber="69"> + <span class="hits">1</span> <code class="ruby"> response_for :destroy</code> </li> <li class="never" data-hits="" data-linenumber="70"> @@ -2556,12 +2561,12 @@ <span class="hits">1</span> <code class="ruby"> def paginated?</code> </li> - <li class="covered" data-hits="34" data-linenumber="102"> - <span class="hits">34</span> + <li class="covered" data-hits="32" data-linenumber="102"> + <span class="hits">32</span> <code class="ruby"> self.class.paginated == true &amp;&amp; params[:pp] != &#39;all&#39;</code> </li> <li class="never" data-hits="" data-linenumber="103"> @@ -2604,42 +2609,42 @@ <span class="hits">1</span> <code class="ruby"> def pagination_parameters</code> </li> - <li class="covered" data-hits="32" data-linenumber="110"> - <span class="hits">32</span> + <li class="covered" data-hits="31" data-linenumber="110"> + <span class="hits">31</span> <code class="ruby"> pp = params[:pp] || TrustyCms.config[&#39;admin.pagination.per_page&#39;]</code> </li> - <li class="covered" data-hits="32" data-linenumber="111"> - <span class="hits">32</span> + <li class="covered" data-hits="31" data-linenumber="111"> + <span class="hits">31</span> <code class="ruby"> pp = (self.class.default_per_page || 50) if pp.blank?</code> </li> <li class="never" data-hits="" data-linenumber="112"> <code class="ruby"> {</code> </li> - <li class="covered" data-hits="32" data-linenumber="113"> - <span class="hits">32</span> + <li class="covered" data-hits="31" data-linenumber="113"> + <span class="hits">31</span> <code class="ruby"> :page =&gt; (params[:p] || 1).to_i,</code> </li> <li class="never" data-hits="" data-linenumber="114"> <code class="ruby"> :per_page =&gt; pp.to_i</code> </li> - <li class="covered" data-hits="32" data-linenumber="115"> - <span class="hits">32</span> + <li class="covered" data-hits="31" data-linenumber="115"> + <span class="hits">31</span> <code class="ruby"> }</code> </li> <li class="never" data-hits="" data-linenumber="116"> @@ -2772,12 +2777,12 @@ <span class="hits">1</span> <code class="ruby"> def model</code> </li> - <li class="covered" data-hits="17" data-linenumber="138"> - <span class="hits">17</span> + <li class="covered" data-hits="15" data-linenumber="138"> + <span class="hits">15</span> <code class="ruby"> instance_variable_get(&quot;@#{model_symbol}&quot;) || load_model</code> </li> <li class="never" data-hits="" data-linenumber="139"> @@ -2886,12 +2891,12 @@ <span class="hits">1</span> <code class="ruby"> def models=(objects)</code> </li> - <li class="covered" data-hits="30" data-linenumber="157"> - <span class="hits">30</span> + <li class="covered" data-hits="29" data-linenumber="157"> + <span class="hits">29</span> <code class="ruby"> instance_variable_set(&quot;@#{plural_model_symbol}&quot;, objects)</code> </li> <li class="never" data-hits="" data-linenumber="158"> @@ -2904,12 +2909,12 @@ <span class="hits">1</span> <code class="ruby"> def load_models</code> </li> - <li class="covered" data-hits="30" data-linenumber="160"> - <span class="hits">30</span> + <li class="covered" data-hits="29" data-linenumber="160"> + <span class="hits">29</span> <code class="ruby"> self.models = paginated? ? model_class.paginate(pagination_parameters) : model_class.all</code> </li> <li class="never" data-hits="" data-linenumber="161"> @@ -2928,12 +2933,12 @@ <span class="hits">1</span> <code class="ruby"> def model_name</code> </li> - <li class="covered" data-hits="62" data-linenumber="164"> - <span class="hits">62</span> + <li class="covered" data-hits="59" data-linenumber="164"> + <span class="hits">59</span> <code class="ruby"> model_class.name</code> </li> <li class="never" data-hits="" data-linenumber="165"> @@ -2976,12 +2981,12 @@ <span class="hits">1</span> <code class="ruby"> def model_symbol</code> </li> - <li class="covered" data-hits="32" data-linenumber="172"> - <span class="hits">32</span> + <li class="covered" data-hits="30" data-linenumber="172"> + <span class="hits">30</span> <code class="ruby"> model_name.underscore.intern</code> </li> <li class="never" data-hits="" data-linenumber="173"> @@ -2994,12 +2999,12 @@ <span class="hits">1</span> <code class="ruby"> def plural_model_symbol</code> </li> - <li class="covered" data-hits="30" data-linenumber="175"> - <span class="hits">30</span> + <li class="covered" data-hits="29" data-linenumber="175"> + <span class="hits">29</span> <code class="ruby"> model_name.pluralize.underscore.intern</code> </li> <li class="never" data-hits="" data-linenumber="176"> @@ -3048,12 +3053,12 @@ <span class="hits">1</span> <code class="ruby"> def continue_url(options)</code> </li> - <li class="covered" data-hits="4" data-linenumber="184"> - <span class="hits">4</span> + <li class="covered" data-hits="3" data-linenumber="184"> + <span class="hits">3</span> <code class="ruby"> options[:redirect_to] || (params[:continue] ? {:action =&gt; &#39;edit&#39;, :id =&gt; model.id} : index_page_for_model)</code> </li> <li class="never" data-hits="" data-linenumber="185"> @@ -3072,18 +3077,18 @@ <span class="hits">1</span> <code class="ruby"> def index_page_for_model</code> </li> - <li class="covered" data-hits="4" data-linenumber="188"> - <span class="hits">4</span> + <li class="covered" data-hits="3" data-linenumber="188"> + <span class="hits">3</span> <code class="ruby"> parts = {:action =&gt; &quot;index&quot;}</code> </li> - <li class="covered" data-hits="4" data-linenumber="189"> - <span class="hits">4</span> + <li class="covered" data-hits="3" data-linenumber="189"> + <span class="hits">3</span> <code class="ruby"> if paginated? &amp;&amp; model &amp;&amp; i = model_class.all.index(model)</code> </li> <li class="covered" data-hits="2" data-linenumber="190"> @@ -3102,12 +3107,12 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="4" data-linenumber="193"> - <span class="hits">4</span> + <li class="covered" data-hits="3" data-linenumber="193"> + <span class="hits">3</span> <code class="ruby"> parts</code> </li> <li class="never" data-hits="" data-linenumber="194"> @@ -3258,12 +3263,12 @@ <span class="hits">1</span> <code class="ruby"> def clear_model_cache</code> </li> - <li class="covered" data-hits="4" data-linenumber="219"> - <span class="hits">4</span> + <li class="covered" data-hits="3" data-linenumber="219"> + <span class="hits">3</span> <code class="ruby"> Rails.cache.clear</code> </li> <li class="never" data-hits="" data-linenumber="220"> @@ -3348,12 +3353,12 @@ <span class="hits">1</span> <code class="ruby"> def never_cache</code> </li> - <li class="covered" data-hits="41" data-linenumber="234"> - <span class="hits">41</span> + <li class="covered" data-hits="40" data-linenumber="234"> + <span class="hits">40</span> <code class="ruby"> expires_now</code> </li> <li class="never" data-hits="" data-linenumber="235"> @@ -3384,12 +3389,12 @@ <span class="hits">1</span> <code class="ruby"> def populate_format</code> </li> - <li class="covered" data-hits="41" data-linenumber="240"> - <span class="hits">41</span> + <li class="covered" data-hits="40" data-linenumber="240"> + <span class="hits">40</span> <code class="ruby"> params[:format] ||= &#39;html&#39; unless request.xhr?</code> </li> <li class="never" data-hits="" data-linenumber="241"> @@ -3417,12 +3422,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="12f7b293396af1e7bb429783083e0914ad715492"> + <div class="source_table" id="47ac572e0b34d388482c846744ee3f074340adf6"> <div class="header"> <h3>app/controllers/admin/users_controller.rb</h3> <h4><span class="red">45.45 %</span> covered</h4> <div> <b>22</b> relevant lines. @@ -3675,12 +3681,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="0548274635e28f0ade382b1fa914b469704b942f"> + <div class="source_table" id="5c6640d980190f3dedb08432aaee8a53437ed042"> <div class="header"> <h3>app/controllers/admin/welcome_controller.rb</h3> <h4><span class="green">93.33 %</span> covered</h4> <div> <b>30</b> relevant lines. @@ -3981,19 +3988,20 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="24df5092852a2bbf884d9a6bfe4815b19056ea68"> + <div class="source_table" id="6e3b2ace708c0ac95ee9137a230e5edbd7b679cf"> <div class="header"> <h3>app/controllers/application_controller.rb</h3> - <h4><span class="yellow">82.69 %</span> covered</h4> + <h4><span class="yellow">81.13 %</span> covered</h4> <div> - <b>52</b> relevant lines. + <b>53</b> relevant lines. <span class="green"><b>43</b> lines covered</span> and - <span class="red"><b>9</b> lines missed.</span> + <span class="red"><b>10</b> lines missed.</span> </div> </div> <pre> <ol> @@ -4134,18 +4142,18 @@ <span class="hits">1</span> <code class="ruby"> def initialize</code> </li> - <li class="covered" data-hits="330" data-linenumber="24"> - <span class="hits">330</span> + <li class="covered" data-hits="326" data-linenumber="24"> + <span class="hits">326</span> <code class="ruby"> super</code> </li> - <li class="covered" data-hits="330" data-linenumber="25"> - <span class="hits">330</span> + <li class="covered" data-hits="326" data-linenumber="25"> + <span class="hits">326</span> <code class="ruby"> @trusty_config = TrustyCms::Config</code> </li> <li class="never" data-hits="" data-linenumber="26"> @@ -4164,24 +4172,24 @@ <span class="hits">1</span> <code class="ruby"> def template_name</code> </li> - <li class="covered" data-hits="52" data-linenumber="29"> - <span class="hits">52</span> + <li class="covered" data-hits="51" data-linenumber="29"> + <span class="hits">51</span> <code class="ruby"> case self.action_name</code> </li> <li class="never" data-hits="" data-linenumber="30"> <code class="ruby"> when &#39;index&#39;</code> </li> - <li class="covered" data-hits="31" data-linenumber="31"> - <span class="hits">31</span> + <li class="covered" data-hits="30" data-linenumber="31"> + <span class="hits">30</span> <code class="ruby"> &#39;index&#39;</code> </li> <li class="never" data-hits="" data-linenumber="32"> @@ -4278,12 +4286,12 @@ <span class="hits">1</span> <code class="ruby"> def set_mailer</code> </li> - <li class="covered" data-hits="136" data-linenumber="48"> - <span class="hits">136</span> + <li class="covered" data-hits="135" data-linenumber="48"> + <span class="hits">135</span> <code class="ruby"> ActionMailer::Base.default_url_options[:host] = request.host_with_port</code> </li> <li class="never" data-hits="" data-linenumber="49"> @@ -4302,12 +4310,12 @@ <span class="hits">1</span> <code class="ruby"> def set_current_user</code> </li> - <li class="covered" data-hits="136" data-linenumber="52"> - <span class="hits">136</span> + <li class="covered" data-hits="135" data-linenumber="52"> + <span class="hits">135</span> <code class="ruby"> UserActionObserver.instance.current_user = current_user</code> </li> <li class="never" data-hits="" data-linenumber="53"> @@ -4326,12 +4334,12 @@ <span class="hits">1</span> <code class="ruby"> def set_user_locale</code> </li> - <li class="covered" data-hits="136" data-linenumber="56"> - <span class="hits">136</span> + <li class="covered" data-hits="135" data-linenumber="56"> + <span class="hits">135</span> <code class="ruby"> I18n.locale = current_user &amp;&amp; !current_user.locale.blank? ? current_user.locale : TrustyCms::Config[&#39;default_locale&#39;]</code> </li> <li class="never" data-hits="" data-linenumber="57"> @@ -4350,12 +4358,12 @@ <span class="hits">1</span> <code class="ruby"> def set_timezone</code> </li> - <li class="covered" data-hits="138" data-linenumber="60"> - <span class="hits">138</span> + <li class="covered" data-hits="137" data-linenumber="60"> + <span class="hits">137</span> <code class="ruby"> Time.zone = TrustyCms::Config[&#39;local.timezone&#39;] != nil &amp;&amp; TrustyCms::Config[&#39;local.timezone&#39;].empty? ? Time.zone_default : TrustyCms::Config[&#39;local.timezone&#39;]</code> </li> <li class="never" data-hits="" data-linenumber="61"> @@ -4374,24 +4382,24 @@ <span class="hits">1</span> <code class="ruby"> def set_javascripts_and_stylesheets</code> </li> - <li class="covered" data-hits="137" data-linenumber="64"> - <span class="hits">137</span> + <li class="covered" data-hits="136" data-linenumber="64"> + <span class="hits">136</span> <code class="ruby"> @stylesheets ||= []</code> </li> - <li class="covered" data-hits="137" data-linenumber="65"> - <span class="hits">137</span> + <li class="covered" data-hits="136" data-linenumber="65"> + <span class="hits">136</span> <code class="ruby"> @stylesheets.concat %w(admin/main)</code> </li> - <li class="covered" data-hits="137" data-linenumber="66"> - <span class="hits">137</span> + <li class="covered" data-hits="136" data-linenumber="66"> + <span class="hits">136</span> <code class="ruby"> @javascripts ||= []</code> </li> <li class="never" data-hits="" data-linenumber="67"> @@ -4506,11 +4514,11 @@ <code class="ruby"> object.each_value { |o| traverse.call(o, block) }</code> </li> - <li class="never" data-hits="" data-linenumber="86"> + <li class="missed" data-hits="0" data-linenumber="86"> <code class="ruby"> elsif object.kind_of?(Array)</code> </li> @@ -4593,12 +4601,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="41a9856bd8ee68d9d8cbdb50d567363cd4411956"> + <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> <div> <b>57</b> relevant lines. @@ -5235,18 +5244,19 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="9b973efca458788c05c2f1159ddf02033a2951e2"> + <div class="source_table" id="cc03ad26247a3bdcc329e31ea73e08a283b8ea36"> <div class="header"> <h3>app/helpers/admin/configuration_helper.rb</h3> - <h4><span class="green">90.48 %</span> covered</h4> + <h4><span class="green">90.7 %</span> covered</h4> <div> - <b>42</b> relevant lines. - <span class="green"><b>38</b> lines covered</span> and + <b>43</b> relevant lines. + <span class="green"><b>39</b> lines covered</span> and <span class="red"><b>4</b> lines missed.</span> </div> </div> <pre> @@ -5580,13 +5590,13 @@ <span class="hits">1</span> <code class="ruby"> html &lt;&lt; content_tag(:label, title.html_safe, :class =&gt; &#39;checkbox&#39;, :for =&gt; domkey)</code> </li> - <li class="never" data-hits="" data-linenumber="56"> + <li class="covered" data-hits="9" data-linenumber="56"> + <span class="hits">9</span> - <code class="ruby"> elsif setting.selector?</code> </li> <li class="covered" data-hits="4" data-linenumber="57"> <span class="hits">4</span> @@ -5739,12 +5749,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="a60b971bc58b9cda32471f0b9507a73bde5812c2"> + <div class="source_table" id="0583e14b5869b1886c89eb809e50916c364b01a6"> <div class="header"> <h3>app/helpers/admin/extensions_helper.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>1</b> relevant lines. @@ -5769,12 +5780,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="f1b71910ed03a14a4fc4cce2c151914e870c1588"> + <div class="source_table" id="780799138341b2bd1b7a771cb7ea1e4b8d371059"> <div class="header"> <h3>app/helpers/admin/layouts_helper.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>1</b> relevant lines. @@ -5805,12 +5817,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="352ca55a4f63d046b73dfeec822cb6b55487185d"> + <div class="source_table" id="d40cbb4484c395b33e0e9bfafbbc256f5cb12015"> <div class="header"> <h3>app/helpers/admin/node_helper.rb</h3> <h4><span class="red">67.39 %</span> covered</h4> <div> <b>46</b> relevant lines. @@ -6363,12 +6376,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="07cdad2482cd19a92b6c1e2ed1c9d59c7b7b0a2a"> + <div class="source_table" id="e7c59205a85110bb8c0b557be26848074903cea6"> <div class="header"> <h3>app/helpers/admin/pages_helper.rb</h3> <h4><span class="red">78.57 %</span> covered</h4> <div> <b>14</b> relevant lines. @@ -6531,12 +6545,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="781d9751547430b5f53e45c0a93bbe1399c262fa"> + <div class="source_table" id="0ee035f009c07e58e4e3d9a6704cb4ba16a813be"> <div class="header"> <h3>app/helpers/admin/preferences_helper.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>1</b> relevant lines. @@ -6567,12 +6582,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="f67b3ce4ba5dfcbf735dc48d7e441eb59a706783"> + <div class="source_table" id="b9f79e9f0a5e53786231d79ecc59147566161e96"> <div class="header"> <h3>app/helpers/admin/references_helper.rb</h3> <h4><span class="red">31.82 %</span> covered</h4> <div> <b>22</b> relevant lines. @@ -6861,12 +6877,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="024a60096d1599d436568bc78004ef69dd2dbf20"> + <div class="source_table" id="638a8fcd83a757c84c47eb75a0ac4b614cfc312e"> <div class="header"> <h3>app/helpers/admin/regions_helper.rb</h3> <h4><span class="green">94.74 %</span> covered</h4> <div> <b>19</b> relevant lines. @@ -6888,72 +6905,72 @@ <span class="hits">1</span> <code class="ruby"> def render_region(region, options={}, &amp;block)</code> </li> - <li class="covered" data-hits="244" data-linenumber="3"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="3"> + <span class="hits">239</span> <code class="ruby"> lazy_initialize_region_set</code> </li> - <li class="covered" data-hits="244" data-linenumber="4"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="4"> + <span class="hits">239</span> <code class="ruby"> default_partials = TrustyCms::AdminUI::RegionPartials.new(self)</code> </li> - <li class="covered" data-hits="244" data-linenumber="5"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="5"> + <span class="hits">239</span> <code class="ruby"> if block_given?</code> </li> - <li class="covered" data-hits="123" data-linenumber="6"> - <span class="hits">123</span> + <li class="covered" data-hits="121" data-linenumber="6"> + <span class="hits">121</span> <code class="ruby"> block.call(default_partials)</code> </li> - <li class="covered" data-hits="123" data-linenumber="7"> - <span class="hits">123</span> + <li class="covered" data-hits="121" data-linenumber="7"> + <span class="hits">121</span> <code class="ruby"> (options[:locals] ||= {}).merge!(:defaults =&gt; default_partials)</code> </li> <li class="never" data-hits="" data-linenumber="8"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="244" data-linenumber="9"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="9"> + <span class="hits">239</span> <code class="ruby"> output = @region_set[region].compact.map do |partial|</code> </li> - <li class="covered" data-hits="194" data-linenumber="10"> - <span class="hits">194</span> + <li class="covered" data-hits="191" data-linenumber="10"> + <span class="hits">191</span> <code class="ruby"> begin</code> </li> - <li class="covered" data-hits="194" data-linenumber="11"> - <span class="hits">194</span> + <li class="covered" data-hits="191" data-linenumber="11"> + <span class="hits">191</span> <code class="ruby"> render options.merge(:partial =&gt; partial)</code> </li> <li class="never" data-hits="" data-linenumber="12"> <code class="ruby"> rescue ::ActionView::MissingTemplate # couldn&#39;t find template</code> </li> - <li class="covered" data-hits="194" data-linenumber="13"> - <span class="hits">194</span> + <li class="covered" data-hits="191" data-linenumber="13"> + <span class="hits">191</span> <code class="ruby"> default_partials[partial]</code> </li> <li class="never" data-hits="" data-linenumber="14"> @@ -6978,18 +6995,18 @@ <code class="ruby"> end.join.html_safe</code> </li> - <li class="covered" data-hits="244" data-linenumber="18"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="18"> + <span class="hits">239</span> <code class="ruby"> Rails.logger.error(output)</code> </li> - <li class="covered" data-hits="244" data-linenumber="19"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="19"> + <span class="hits">239</span> <code class="ruby"> block_given? ? concat(output) : output</code> </li> <li class="never" data-hits="" data-linenumber="20"> @@ -7008,30 +7025,30 @@ <span class="hits">1</span> <code class="ruby"> def lazy_initialize_region_set</code> </li> - <li class="covered" data-hits="244" data-linenumber="23"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="23"> + <span class="hits">239</span> <code class="ruby"> unless @region_set</code> </li> - <li class="covered" data-hits="44" data-linenumber="24"> - <span class="hits">44</span> + <li class="covered" data-hits="43" data-linenumber="24"> + <span class="hits">43</span> <code class="ruby"> @controller_name ||= @_controller.controller_name</code> </li> - <li class="covered" data-hits="44" data-linenumber="25"> - <span class="hits">44</span> + <li class="covered" data-hits="43" data-linenumber="25"> + <span class="hits">43</span> <code class="ruby"> @template_name ||= @_controller.template_name</code> </li> - <li class="covered" data-hits="44" data-linenumber="26"> - <span class="hits">44</span> + <li class="covered" data-hits="43" data-linenumber="26"> + <span class="hits">43</span> <code class="ruby"> @region_set = admin.send(@controller_name).send(@template_name)</code> </li> <li class="never" data-hits="" data-linenumber="27"> @@ -7053,12 +7070,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="c36f97396afab7acde2fbe5a063b597d0b40f848"> + <div class="source_table" id="cf38cad557129a7ce4c509abb1381d5e5a8ab33f"> <div class="header"> <h3>app/helpers/admin/resource_helper.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>1</b> relevant lines. @@ -7083,12 +7101,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="b5b66cc2c9ceed019da04d236c18a819343756d7"> + <div class="source_table" id="9c8cace70efe8f81b11255fbd8e7b3f365ea2cd5"> <div class="header"> <h3>app/helpers/admin/users_helper.rb</h3> <h4><span class="red">33.33 %</span> covered</h4> <div> <b>6</b> relevant lines. @@ -7149,12 +7168,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="84bf416885112758ab122c8fd5353d9486d18756"> + <div class="source_table" id="3649edf8d6821131cad6b320472fa64882d39f89"> <div class="header"> <h3>app/helpers/admin/welcome_helper.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>1</b> relevant lines. @@ -7179,18 +7199,19 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="e8ceba241b247e5465fc091266d42235281b188b"> + <div class="source_table" id="364f910ecfbecc20b9050379b03e1addc3b0d788"> <div class="header"> <h3>app/helpers/application_helper.rb</h3> - <h4><span class="yellow">85.84 %</span> covered</h4> + <h4><span class="yellow">85.96 %</span> covered</h4> <div> - <b>113</b> relevant lines. - <span class="green"><b>97</b> lines covered</span> and + <b>114</b> relevant lines. + <span class="green"><b>98</b> lines covered</span> and <span class="red"><b>16</b> lines missed.</span> </div> </div> <pre> @@ -7218,12 +7239,12 @@ <span class="hits">1</span> <code class="ruby"> def trusty_config</code> </li> - <li class="covered" data-hits="138" data-linenumber="5"> - <span class="hits">138</span> + <li class="covered" data-hits="136" data-linenumber="5"> + <span class="hits">136</span> <code class="ruby"> TrustyCms::Config</code> </li> <li class="never" data-hits="" data-linenumber="6"> @@ -7242,12 +7263,12 @@ <span class="hits">1</span> <code class="ruby"> def default_page_title</code> </li> - <li class="covered" data-hits="69" data-linenumber="9"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="9"> + <span class="hits">68</span> <code class="ruby"> title + &#39; - &#39; + subtitle</code> </li> <li class="never" data-hits="" data-linenumber="10"> @@ -7266,12 +7287,12 @@ <span class="hits">1</span> <code class="ruby"> def title</code> </li> - <li class="covered" data-hits="69" data-linenumber="13"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="13"> + <span class="hits">68</span> <code class="ruby"> trusty_config[&#39;admin.title&#39;] || &#39;Trusty CMS&#39;</code> </li> <li class="never" data-hits="" data-linenumber="14"> @@ -7290,12 +7311,12 @@ <span class="hits">1</span> <code class="ruby"> def subtitle</code> </li> - <li class="covered" data-hits="69" data-linenumber="17"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="17"> + <span class="hits">68</span> <code class="ruby"> trusty_config[&#39;admin.subtitle&#39;] || &#39;Publishing for Small Teams&#39;</code> </li> <li class="never" data-hits="" data-linenumber="18"> @@ -7314,12 +7335,12 @@ <span class="hits">1</span> <code class="ruby"> def logged_in?</code> </li> - <li class="covered" data-hits="69" data-linenumber="21"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="21"> + <span class="hits">68</span> <code class="ruby"> !current_user.nil?</code> </li> <li class="never" data-hits="" data-linenumber="22"> @@ -7506,18 +7527,18 @@ <span class="hits">1</span> <code class="ruby"> def current_tab?(tab)</code> </li> - <li class="covered" data-hits="372" data-linenumber="53"> - <span class="hits">372</span> + <li class="covered" data-hits="363" data-linenumber="53"> + <span class="hits">363</span> <code class="ruby"> @current_tab ||= tab if tab.any? {|item| current_url?(item.relative_url) }</code> </li> - <li class="covered" data-hits="130" data-linenumber="54"> - <span class="hits">130</span> + <li class="covered" data-hits="127" data-linenumber="54"> + <span class="hits">127</span> <code class="ruby"> @current_tab == tab</code> </li> <li class="never" data-hits="" data-linenumber="55"> @@ -7536,12 +7557,12 @@ <span class="hits">1</span> <code class="ruby"> def current_url?(options)</code> </li> - <li class="covered" data-hits="382" data-linenumber="58"> - <span class="hits">382</span> + <li class="covered" data-hits="376" data-linenumber="58"> + <span class="hits">376</span> <code class="ruby"> url = case options</code> </li> <li class="never" data-hits="" data-linenumber="59"> @@ -7560,12 +7581,12 @@ <code class="ruby"> else</code> </li> - <li class="covered" data-hits="382" data-linenumber="62"> - <span class="hits">382</span> + <li class="covered" data-hits="376" data-linenumber="62"> + <span class="hits">376</span> <code class="ruby"> options.to_s</code> </li> <li class="never" data-hits="" data-linenumber="63"> @@ -7578,12 +7599,12 @@ <code class="ruby"> #TODO: look for other instances of request_uri</code> </li> - <li class="covered" data-hits="382" data-linenumber="65"> - <span class="hits">382</span> + <li class="covered" data-hits="376" data-linenumber="65"> + <span class="hits">376</span> <code class="ruby"> request.original_fullpath =~ Regexp.new(&#39;^&#39; + Regexp.quote(clean(url)))</code> </li> <li class="never" data-hits="" data-linenumber="66"> @@ -7602,18 +7623,18 @@ <span class="hits">1</span> <code class="ruby"> def clean(url)</code> </li> - <li class="covered" data-hits="382" data-linenumber="69"> - <span class="hits">382</span> + <li class="covered" data-hits="376" data-linenumber="69"> + <span class="hits">376</span> <code class="ruby"> uri = URI.parse(url)</code> </li> - <li class="covered" data-hits="382" data-linenumber="70"> - <span class="hits">382</span> + <li class="covered" data-hits="376" data-linenumber="70"> + <span class="hits">376</span> <code class="ruby"> uri.path.gsub(%r{/+}, &#39;/&#39;).gsub(%r{/$}, &#39;&#39;)</code> </li> <li class="never" data-hits="" data-linenumber="71"> @@ -7848,12 +7869,12 @@ <span class="hits">1</span> <code class="ruby"> def image(name, options = {})</code> </li> - <li class="covered" data-hits="67" data-linenumber="110"> - <span class="hits">67</span> + <li class="covered" data-hits="66" data-linenumber="110"> + <span class="hits">66</span> <code class="ruby"> image_tag(append_image_extension(&quot;admin/#{name}&quot;), options)</code> </li> <li class="never" data-hits="" data-linenumber="111"> @@ -7872,12 +7893,12 @@ <span class="hits">1</span> <code class="ruby"> def admin</code> </li> - <li class="covered" data-hits="112" data-linenumber="114"> - <span class="hits">112</span> + <li class="covered" data-hits="109" data-linenumber="114"> + <span class="hits">109</span> <code class="ruby"> TrustyCms::AdminUI.instance</code> </li> <li class="never" data-hits="" data-linenumber="115"> @@ -7896,12 +7917,12 @@ <span class="hits">1</span> <code class="ruby"> def body_classes</code> </li> - <li class="covered" data-hits="101" data-linenumber="118"> - <span class="hits">101</span> + <li class="covered" data-hits="100" data-linenumber="118"> + <span class="hits">100</span> <code class="ruby"> @body_classes ||= []</code> </li> <li class="never" data-hits="" data-linenumber="119"> @@ -7920,12 +7941,12 @@ <span class="hits">1</span> <code class="ruby"> def nav_tabs</code> </li> - <li class="covered" data-hits="44" data-linenumber="122"> - <span class="hits">44</span> + <li class="covered" data-hits="43" data-linenumber="122"> + <span class="hits">43</span> <code class="ruby"> admin.nav</code> </li> <li class="never" data-hits="" data-linenumber="123"> @@ -7944,12 +7965,12 @@ <span class="hits">1</span> <code class="ruby"> def translate_with_default(name)</code> </li> - <li class="covered" data-hits="158" data-linenumber="126"> - <span class="hits">158</span> + <li class="covered" data-hits="155" data-linenumber="126"> + <span class="hits">155</span> <code class="ruby"> t(name.underscore.downcase, :default =&gt; name)</code> </li> <li class="never" data-hits="" data-linenumber="127"> @@ -7992,18 +8013,18 @@ <span class="hits">1</span> <code class="ruby"> def stylesheet_overrides</code> </li> - <li class="covered" data-hits="69" data-linenumber="134"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="134"> + <span class="hits">68</span> <code class="ruby"> overrides = []</code> </li> - <li class="covered" data-hits="69" data-linenumber="135"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="135"> + <span class="hits">68</span> <code class="ruby"> if File.exist?(&quot;#{Rails.root}/public/stylesheets/admin/overrides.css&quot;) || File.exist?(&quot;#{Rails.root}/public/stylesheets/sass/admin/overrides.sass&quot;)</code> </li> <li class="missed" data-hits="0" data-linenumber="136"> @@ -8016,12 +8037,12 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="69" data-linenumber="138"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="138"> + <span class="hits">68</span> <code class="ruby"> overrides</code> </li> <li class="never" data-hits="" data-linenumber="139"> @@ -8040,18 +8061,18 @@ <span class="hits">1</span> <code class="ruby"> def javascript_overrides</code> </li> - <li class="covered" data-hits="69" data-linenumber="142"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="142"> + <span class="hits">68</span> <code class="ruby"> overrides = []</code> </li> - <li class="covered" data-hits="69" data-linenumber="143"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="143"> + <span class="hits">68</span> <code class="ruby"> if File.exist?(&quot;#{Rails.root}/public/javascripts/admin/overrides.js&quot;)</code> </li> <li class="missed" data-hits="0" data-linenumber="144"> @@ -8064,12 +8085,12 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="69" data-linenumber="146"> - <span class="hits">69</span> + <li class="covered" data-hits="68" data-linenumber="146"> + <span class="hits">68</span> <code class="ruby"> overrides</code> </li> <li class="never" data-hits="" data-linenumber="147"> @@ -8364,13 +8385,13 @@ <code class="ruby"> html &lt;&lt; content_tag(:div, link_to(t(&#39;show_all&#39;), :pp =&gt; &#39;all&#39;), :class =&gt; &#39;depaginate&#39;)</code> </li> - <li class="never" data-hits="" data-linenumber="196"> + <li class="covered" data-hits="8" data-linenumber="196"> + <span class="hits">8</span> - <code class="ruby"> elsif depaginate &amp;&amp; list.total_entries &gt; depagination_limit.to_i</code> </li> <li class="missed" data-hits="0" data-linenumber="197"> @@ -8424,18 +8445,18 @@ <span class="hits">1</span> <code class="ruby"> def append_image_extension(name)</code> </li> - <li class="covered" data-hits="67" data-linenumber="206"> - <span class="hits">67</span> + <li class="covered" data-hits="66" data-linenumber="206"> + <span class="hits">66</span> <code class="ruby"> unless name =~ /\.(.*?)$/</code> </li> - <li class="covered" data-hits="58" data-linenumber="207"> - <span class="hits">58</span> + <li class="covered" data-hits="57" data-linenumber="207"> + <span class="hits">57</span> <code class="ruby"> name + &#39;.png&#39;</code> </li> <li class="never" data-hits="" data-linenumber="208"> @@ -8475,12 +8496,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="a39d78c4fc93191de03915ecd09328b64f41b587"> + <div class="source_table" id="7c4dfe079d96b6107e43f2787bd3eb7193bb8bd3"> <div class="header"> <h3>app/helpers/site_helper.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>1</b> relevant lines. @@ -8505,12 +8527,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="24a478dc81cb312b20b3b6ff5d59f560307249ae"> + <div class="source_table" id="ce84beeca2a57c15d5da143808d6f6e6eb85e430"> <div class="header"> <h3>app/models/layout.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>9</b> relevant lines. @@ -8619,12 +8642,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="0a4dd54b5173ef00862c0de3249f9062548ae0ed"> + <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> <div> <b>75</b> relevant lines. @@ -9477,12 +9501,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="ee99abb95d276df654be743872e18cebe9cd7a76"> + <div class="source_table" id="49c0d6cdd80063237788139caa212ff3b99f0569"> <div class="header"> <h3>app/models/page_field.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>3</b> relevant lines. @@ -9519,12 +9544,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="a305f6d4632c6314af7cf73ec29de843155d1b7c"> + <div class="source_table" id="bd093ce629db1b261871cea3d4882c14d0edc165"> <div class="header"> <h3>app/models/page_part.rb</h3> <h4><span class="yellow">90.0 %</span> covered</h4> <div> <b>10</b> relevant lines. @@ -9558,12 +9584,12 @@ <code class="ruby"> # Default Order</code> </li> - <li class="covered" data-hits="19" data-linenumber="5"> - <span class="hits">19</span> + <li class="covered" data-hits="14" data-linenumber="5"> + <span class="hits">14</span> <code class="ruby"> default_scope {order(&quot;name&quot;)}</code> </li> <li class="never" data-hits="" data-linenumber="6"> @@ -9657,12 +9683,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="7388d43ba91c2a28d73545a6809e9d998ff37d21"> + <div class="source_table" id="7bbb7a658abedc8bd08027742a2caa6df93f5d28"> <div class="header"> <h3>app/models/status.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>18</b> relevant lines. @@ -9921,12 +9948,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="a3d0e95dccc6cc402608c949f61537589888f7d7"> + <div class="source_table" id="f75912d7024ea4b17e23b6212deece9f8d099be8"> <div class="header"> <h3>app/models/text_filter.rb</h3> <h4><span class="red">62.5 %</span> covered</h4> <div> <b>16</b> relevant lines. @@ -10125,12 +10153,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="3245bdc6bf68c4799ba1a1df23d11fe7c154286c"> + <div class="source_table" id="81a323fefe55031208374870d21243beae4e4565"> <div class="header"> <h3>app/models/user.rb</h3> <h4><span class="yellow">82.69 %</span> covered</h4> <div> <b>52</b> relevant lines. @@ -10320,12 +10349,12 @@ <span class="hits">1</span> <code class="ruby"> def has_role?(role)</code> </li> - <li class="covered" data-hits="130" data-linenumber="31"> - <span class="hits">130</span> + <li class="covered" data-hits="128" data-linenumber="31"> + <span class="hits">128</span> <code class="ruby"> respond_to?(&quot;#{role}?&quot;) &amp;&amp; send(&quot;#{role}?&quot;)</code> </li> <li class="never" data-hits="" data-linenumber="32"> @@ -10725,12 +10754,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="224090690cd46a1b82b33b9876817d1d65b88e42"> + <div class="source_table" id="8e9451d3350618c4464083f2173ec92c1cbba22a"> <div class="header"> <h3>app/models/user_action_observer.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>14</b> relevant lines. @@ -10764,12 +10794,12 @@ <span class="hits">1</span> <code class="ruby"> def current_user=(user)</code> </li> - <li class="covered" data-hits="136" data-linenumber="5"> - <span class="hits">136</span> + <li class="covered" data-hits="135" data-linenumber="5"> + <span class="hits">135</span> <code class="ruby"> self.class.current_user = user</code> </li> <li class="never" data-hits="" data-linenumber="6"> @@ -10782,12 +10812,12 @@ <span class="hits">1</span> <code class="ruby"> def self.current_user=(user)</code> </li> - <li class="covered" data-hits="136" data-linenumber="8"> - <span class="hits">136</span> + <li class="covered" data-hits="135" data-linenumber="8"> + <span class="hits">135</span> <code class="ruby"> Thread.current[:current_user] = user</code> </li> <li class="never" data-hits="" data-linenumber="9"> @@ -10893,12 +10923,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="d68b3b291e170af9809ca2750a36de47a6d1f510"> + <div class="source_table" id="6b2b4e11dc5e71e9e79d239984b30738d065981e"> <div class="header"> <h3>lib/login_system.rb</h3> <h4><span class="red">78.95 %</span> covered</h4> <div> <b>76</b> relevant lines. @@ -10986,12 +11017,12 @@ <span class="hits">1</span> <code class="ruby"> def current_user</code> </li> - <li class="covered" data-hits="872" data-linenumber="14"> - <span class="hits">872</span> + <li class="covered" data-hits="861" data-linenumber="14"> + <span class="hits">861</span> <code class="ruby"> @current_user ||= (login_from_session || login_from_cookie || login_from_http)</code> </li> <li class="never" data-hits="" data-linenumber="15"> @@ -11082,24 +11113,24 @@ <code class="ruby"> #puts _process_action_callbacks.map(&amp;:filter)</code> </li> - <li class="covered" data-hits="72" data-linenumber="30"> - <span class="hits">72</span> + <li class="covered" data-hits="71" data-linenumber="30"> + <span class="hits">71</span> <code class="ruby"> if current_user</code> </li> - <li class="covered" data-hits="50" data-linenumber="31"> - <span class="hits">50</span> + <li class="covered" data-hits="49" data-linenumber="31"> + <span class="hits">49</span> <code class="ruby"> session[&#39;user_id&#39;] = current_user.id</code> </li> - <li class="covered" data-hits="50" data-linenumber="32"> - <span class="hits">50</span> + <li class="covered" data-hits="49" data-linenumber="32"> + <span class="hits">49</span> <code class="ruby"> true</code> </li> <li class="never" data-hits="" data-linenumber="33"> @@ -11172,24 +11203,24 @@ <code class="ruby"> #puts _process_action_callbacks.map(&amp;:filter)</code> </li> - <li class="covered" data-hits="72" data-linenumber="45"> - <span class="hits">72</span> + <li class="covered" data-hits="71" data-linenumber="45"> + <span class="hits">71</span> <code class="ruby"> action = action_name.to_s.intern</code> </li> - <li class="covered" data-hits="72" data-linenumber="46"> - <span class="hits">72</span> + <li class="covered" data-hits="71" data-linenumber="46"> + <span class="hits">71</span> <code class="ruby"> if user_has_access_to_action?(action)</code> </li> - <li class="covered" data-hits="72" data-linenumber="47"> - <span class="hits">72</span> + <li class="covered" data-hits="71" data-linenumber="47"> + <span class="hits">71</span> <code class="ruby"> true</code> </li> <li class="never" data-hits="" data-linenumber="48"> @@ -11262,12 +11293,12 @@ <span class="hits">1</span> <code class="ruby"> def user_has_access_to_action?(action)</code> </li> - <li class="covered" data-hits="72" data-linenumber="60"> - <span class="hits">72</span> + <li class="covered" data-hits="71" data-linenumber="60"> + <span class="hits">71</span> <code class="ruby"> self.class.user_has_access_to_action?(current_user, action, self)</code> </li> <li class="never" data-hits="" data-linenumber="61"> @@ -11286,12 +11317,12 @@ <span class="hits">1</span> <code class="ruby"> def login_from_session</code> </li> - <li class="covered" data-hits="579" data-linenumber="64"> - <span class="hits">579</span> + <li class="covered" data-hits="578" data-linenumber="64"> + <span class="hits">578</span> <code class="ruby"> User.unscoped.find(session[&#39;user_id&#39;]) rescue nil</code> </li> <li class="never" data-hits="" data-linenumber="65"> @@ -11592,12 +11623,12 @@ <span class="hits">1</span> <code class="ruby"> def controller_permissions</code> </li> - <li class="covered" data-hits="260" data-linenumber="115"> - <span class="hits">260</span> + <li class="covered" data-hits="256" data-linenumber="115"> + <span class="hits">256</span> <code class="ruby"> @controller_permissions ||= Hash.new { |h,k| h[k.to_s.intern] = Hash.new }</code> </li> <li class="never" data-hits="" data-linenumber="116"> @@ -11616,12 +11647,12 @@ <span class="hits">1</span> <code class="ruby"> def user_has_access_to_action?(user, action, instance=new)</code> </li> - <li class="covered" data-hits="232" data-linenumber="119"> - <span class="hits">232</span> + <li class="covered" data-hits="228" data-linenumber="119"> + <span class="hits">228</span> <code class="ruby"> permissions = controller_permissions[action.to_s.intern]</code> </li> <li class="never" data-hits="" data-linenumber="120"> @@ -11634,18 +11665,18 @@ <code class="ruby"> when allowed_roles = permissions[:when]</code> </li> - <li class="covered" data-hits="73" data-linenumber="122"> - <span class="hits">73</span> + <li class="covered" data-hits="72" data-linenumber="122"> + <span class="hits">72</span> <code class="ruby"> allowed_roles = [allowed_roles].flatten</code> </li> - <li class="covered" data-hits="203" data-linenumber="123"> - <span class="hits">203</span> + <li class="covered" data-hits="200" data-linenumber="123"> + <span class="hits">200</span> <code class="ruby"> user.present? ? allowed_roles.any? { |role| user.has_role?(role) } : false</code> </li> <li class="never" data-hits="" data-linenumber="124"> @@ -11664,18 +11695,18 @@ <code class="ruby"> else</code> </li> - <li class="covered" data-hits="159" data-linenumber="127"> - <span class="hits">159</span> + <li class="covered" data-hits="156" data-linenumber="127"> + <span class="hits">156</span> <code class="ruby"> true</code> </li> - <li class="covered" data-hits="232" data-linenumber="128"> - <span class="hits">232</span> + <li class="covered" data-hits="228" data-linenumber="128"> + <span class="hits">228</span> <code class="ruby"> end</code> </li> <li class="never" data-hits="" data-linenumber="129"> @@ -11697,12 +11728,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="bfaefba265a613847eb17511c91aeb33124d3b07"> + <div class="source_table" id="11328cfb263cce0e77b424d30c11127e715be20e"> <div class="header"> <h3>lib/trusty_cms/admin_ui/region_partials.rb</h3> <h4><span class="yellow">83.33 %</span> covered</h4> <div> <b>12</b> relevant lines. @@ -11724,18 +11756,18 @@ <span class="hits">1</span> <code class="ruby"> def initialize(template)</code> </li> - <li class="covered" data-hits="244" data-linenumber="3"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="3"> + <span class="hits">239</span> <code class="ruby"> @partials = Hash.new {|h,k| h[k] = &quot;&lt;strong&gt;`#{k}&#39; default partial not found!&lt;/strong&gt;&quot; }</code> </li> - <li class="covered" data-hits="244" data-linenumber="4"> - <span class="hits">244</span> + <li class="covered" data-hits="239" data-linenumber="4"> + <span class="hits">239</span> <code class="ruby"> @template = template</code> </li> <li class="never" data-hits="" data-linenumber="5"> @@ -11754,12 +11786,12 @@ <span class="hits">1</span> <code class="ruby"> def [](key)</code> </li> - <li class="covered" data-hits="194" data-linenumber="8"> - <span class="hits">194</span> + <li class="covered" data-hits="191" data-linenumber="8"> + <span class="hits">191</span> <code class="ruby"> @partials[key.to_s]</code> </li> <li class="never" data-hits="" data-linenumber="9"> @@ -11778,12 +11810,12 @@ <span class="hits">1</span> <code class="ruby"> def method_missing(method, *args, &amp;block)</code> </li> - <li class="covered" data-hits="195" data-linenumber="12"> - <span class="hits">195</span> + <li class="covered" data-hits="192" data-linenumber="12"> + <span class="hits">192</span> <code class="ruby"> if block_given?</code> </li> <li class="never" data-hits="" data-linenumber="13"> @@ -11796,12 +11828,12 @@ <code class="ruby"> # lambdas are as strict as methods in 1.9.x, making sure that the args match, Procs are not.</code> </li> - <li class="covered" data-hits="195" data-linenumber="15"> - <span class="hits">195</span> + <li class="covered" data-hits="192" data-linenumber="15"> + <span class="hits">192</span> <code class="ruby"> if RUBY_VERSION =~ /^1\.9/ and block.lambda? and block.arity != 1</code> </li> <li class="missed" data-hits="0" data-linenumber="16"> @@ -11814,12 +11846,12 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="195" data-linenumber="18"> - <span class="hits">195</span> + <li class="covered" data-hits="192" data-linenumber="18"> + <span class="hits">192</span> <code class="ruby"> @partials[method.to_s] = @template.capture(&amp;block)</code> </li> <li class="never" data-hits="" data-linenumber="19"> @@ -11853,12 +11885,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="62bfb9f3ee6e8ac2730bec06c3df334c59428c84"> + <div class="source_table" id="67d6fd9b574c8bb746cfbd6f1d3ec545d3671999"> <div class="header"> <h3>lib/trusty_cms/available_locales.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>10</b> relevant lines. @@ -11985,12 +12018,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="7ec5b193ca91bf0e62afdd726aa3bd77aba3eaaa"> + <div class="source_table" id="0fb2f38734135f195dc6f55c5f8f8c33b0473268"> <div class="header"> <h3>lib/trusty_cms/pagination/controller.rb</h3> <h4><span class="green">92.86 %</span> covered</h4> <div> <b>14</b> relevant lines. @@ -12249,12 +12283,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="bed13f447cc3293c2e33013bd302547d11b4f7be"> + <div class="source_table" id="a2cfabfa5bf3002a51933c8f57119adc7d3d50d3"> <div class="header"> <h3>lib/trusty_cms/resource_responses.rb</h3> <h4><span class="red">80.0 %</span> covered</h4> <div> <b>70</b> relevant lines. @@ -12360,36 +12395,36 @@ <span class="hits">1</span> <code class="ruby"> def response_for(action)</code> </li> - <li class="covered" data-hits="41" data-linenumber="17"> - <span class="hits">41</span> + <li class="covered" data-hits="39" data-linenumber="17"> + <span class="hits">39</span> <code class="ruby"> responses = self.class.responses.send(action)</code> </li> - <li class="covered" data-hits="41" data-linenumber="18"> - <span class="hits">41</span> + <li class="covered" data-hits="39" data-linenumber="18"> + <span class="hits">39</span> <code class="ruby"> respond_to do |wants|</code> </li> - <li class="covered" data-hits="41" data-linenumber="19"> - <span class="hits">41</span> + <li class="covered" data-hits="39" data-linenumber="19"> + <span class="hits">39</span> <code class="ruby"> responses.each_format do |f, format_block|</code> </li> - <li class="covered" data-hits="30" data-linenumber="20"> - <span class="hits">30</span> + <li class="covered" data-hits="29" data-linenumber="20"> + <span class="hits">29</span> <code class="ruby"> if format_block</code> </li> - <li class="covered" data-hits="30" data-linenumber="21"> - <span class="hits">30</span> + <li class="covered" data-hits="29" data-linenumber="21"> + <span class="hits">29</span> <code class="ruby"> wants.send(f, &amp;wrap(format_block))</code> </li> <li class="never" data-hits="" data-linenumber="22"> @@ -12414,48 +12449,48 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="41" data-linenumber="26"> - <span class="hits">41</span> + <li class="covered" data-hits="39" data-linenumber="26"> + <span class="hits">39</span> <code class="ruby"> responses.each_published do |pub, pub_block|</code> </li> - <li class="covered" data-hits="78" data-linenumber="27"> - <span class="hits">78</span> + <li class="covered" data-hits="74" data-linenumber="27"> + <span class="hits">74</span> <code class="ruby"> wants.send(pub, &amp;wrap(pub_block))</code> </li> <li class="never" data-hits="" data-linenumber="28"> <code class="ruby"> end</code> </li> - <li class="covered" data-hits="41" data-linenumber="29"> - <span class="hits">41</span> + <li class="covered" data-hits="39" data-linenumber="29"> + <span class="hits">39</span> <code class="ruby"> if responses.default</code> </li> - <li class="covered" data-hits="9" data-linenumber="30"> - <span class="hits">9</span> + <li class="covered" data-hits="8" data-linenumber="30"> + <span class="hits">8</span> <code class="ruby"> wants.any(&amp;wrap(responses.default))</code> </li> <li class="never" data-hits="" data-linenumber="31"> <code class="ruby"> else</code> </li> - <li class="covered" data-hits="32" data-linenumber="32"> - <span class="hits">32</span> + <li class="covered" data-hits="31" data-linenumber="32"> + <span class="hits">31</span> <code class="ruby"> wants.any</code> </li> <li class="never" data-hits="" data-linenumber="33"> @@ -12492,12 +12527,12 @@ <code class="ruby"> # Makes sure our response blocks get evaluated in the right context</code> </li> - <li class="covered" data-hits="117" data-linenumber="39"> - <span class="hits">117</span> + <li class="covered" data-hits="111" data-linenumber="39"> + <span class="hits">111</span> <code class="ruby"> lambda do</code> </li> <li class="never" data-hits="" data-linenumber="40"> @@ -12510,12 +12545,12 @@ <code class="ruby"> # lambdas are as strict as methods in 1.9.x, making sure that the args match, Procs are not.</code> </li> - <li class="covered" data-hits="9" data-linenumber="42"> - <span class="hits">9</span> + <li class="covered" data-hits="8" data-linenumber="42"> + <span class="hits">8</span> <code class="ruby"> if RUBY_VERSION =~ /^1\.9/ and proc.lambda? and proc.arity != 1</code> </li> <li class="missed" data-hits="0" data-linenumber="43"> @@ -12534,12 +12569,12 @@ <code class="ruby"></code> </li> - <li class="covered" data-hits="9" data-linenumber="46"> - <span class="hits">9</span> + <li class="covered" data-hits="8" data-linenumber="46"> + <span class="hits">8</span> <code class="ruby"> instance_eval(&amp;proc)</code> </li> <li class="never" data-hits="" data-linenumber="47"> @@ -12750,12 +12785,12 @@ <span class="hits">1</span> <code class="ruby"> def default(&amp;block)</code> </li> - <li class="covered" data-hits="57" data-linenumber="82"> - <span class="hits">57</span> + <li class="covered" data-hits="54" data-linenumber="82"> + <span class="hits">54</span> <code class="ruby"> if block_given?</code> </li> <li class="covered" data-hits="7" data-linenumber="83"> @@ -12768,12 +12803,12 @@ <code class="ruby"> end</code> </li> - <li class="covered" data-hits="57" data-linenumber="85"> - <span class="hits">57</span> + <li class="covered" data-hits="54" data-linenumber="85"> + <span class="hits">54</span> <code class="ruby"> @default</code> </li> <li class="never" data-hits="" data-linenumber="86"> @@ -12846,18 +12881,18 @@ <span class="hits">1</span> <code class="ruby"> def each_published</code> </li> - <li class="covered" data-hits="41" data-linenumber="98"> - <span class="hits">41</span> + <li class="covered" data-hits="39" data-linenumber="98"> + <span class="hits">39</span> <code class="ruby"> publish_formats.each do |format|</code> </li> - <li class="covered" data-hits="78" data-linenumber="99"> - <span class="hits">78</span> + <li class="covered" data-hits="74" data-linenumber="99"> + <span class="hits">74</span> <code class="ruby"> yield format, publish_block if block_given?</code> </li> <li class="never" data-hits="" data-linenumber="100"> @@ -12882,18 +12917,18 @@ <span class="hits">1</span> <code class="ruby"> def each_format</code> </li> - <li class="covered" data-hits="41" data-linenumber="104"> - <span class="hits">41</span> + <li class="covered" data-hits="39" data-linenumber="104"> + <span class="hits">39</span> <code class="ruby"> @block_order.each do |format|</code> </li> - <li class="covered" data-hits="30" data-linenumber="105"> - <span class="hits">30</span> + <li class="covered" data-hits="29" data-linenumber="105"> + <span class="hits">29</span> <code class="ruby"> yield format, @blocks[format] if block_given?</code> </li> <li class="never" data-hits="" data-linenumber="106"> @@ -12993,12 +13028,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="caa7ec0029d51eb5c9bde0f679fcfcb448b3cd01"> + <div class="source_table" id="ad28fc13353a228211160292c64c178f99d727f2"> <div class="header"> <h3>spec/controllers/application_controller_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>40</b> relevant lines. @@ -13371,12 +13407,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="337cbe163bc8bfdb5179ca7658af10ab02e6c229"> + <div class="source_table" id="ac954dc35f7a221e8e355b693dff48716a41c94f"> <div class="header"> <h3>spec/controllers/users_controller_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>3</b> relevant lines. @@ -13425,12 +13462,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="a27fd50274e4ef14baece85f6fc1ef2dff24481e"> + <div class="source_table" id="3cc0a60749736c01618a4dac4a949ad19f971ebf"> <div class="header"> <h3>spec/controllers/welcome_controller_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>3</b> relevant lines. @@ -13479,12 +13517,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="b8f4cd120e1d67bc8beac165fcf0bc0aa4481001"> + <div class="source_table" id="2e372ce9efba322966a99a44ae3037847b4b7262"> <div class="header"> <h3>spec/factories/layout.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>4</b> relevant lines. @@ -13599,12 +13638,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="52c1bc36f76c25cd101e46c7a3f7a84525c34f4b"> + <div class="source_table" id="13f9da5e4654a837d7a7fa4bf4dfe846817dcbe8"> <div class="header"> <h3>spec/factories/page.rb</h3> <h4><span class="green">94.12 %</span> covered</h4> <div> <b>34</b> relevant lines. @@ -13995,12 +14035,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="a6d1c85998b8276583505169d707d367cc646d80"> + <div class="source_table" id="43c889995f5a88d85b177672c6b7258a36da847d"> <div class="header"> <h3>spec/factories/page_part.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>4</b> relevant lines. @@ -14061,12 +14102,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="859825ade596f74e620e85f509164a957b8443d5"> + <div class="source_table" id="bb53b254f55492b65c9488519a4a084dbbbdcae2"> <div class="header"> <h3>spec/factories/user.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>25</b> relevant lines. @@ -14289,12 +14331,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="5d70a4be91101af4532a395a46c8d595d80b8fb0"> + <div class="source_table" id="6b795fc960ee17e8313e6ee8aacb5edd5dc7a92b"> <div class="header"> <h3>spec/features/admin_login_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>52</b> relevant lines. @@ -14859,12 +14902,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="a413cd7cc1724408d7a525553d4834265f04885e"> + <div class="source_table" id="7add22ef7d3b00bd38c2c13423da3140645cd781"> <div class="header"> <h3>spec/features/config_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>21</b> relevant lines. @@ -15081,12 +15125,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="7570781db4c3155e965463b658470da596800bab"> + <div class="source_table" id="c35ea2aae277770e5b88ca23c8d45289ba333a8a"> <div class="header"> <h3>spec/features/layouts_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>33</b> relevant lines. @@ -15393,19 +15438,20 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="d4d1a930f2f47b0ce0846efa1c917ebdf0bf2c69"> + <div class="source_table" id="00a8a76a40cbc43916d2f53c3e4536194342e0d1"> <div class="header"> <h3>spec/features/pages_spec.rb</h3> - <h4><span class="green">100.0 %</span> covered</h4> + <h4><span class="green">94.12 %</span> covered</h4> <div> <b>34</b> relevant lines. - <span class="green"><b>34</b> lines covered</span> and - <span class="red"><b>0</b> lines missed.</span> + <span class="green"><b>32</b> lines covered</span> and + <span class="red"><b>2</b> lines missed.</span> </div> </div> <pre> <ol> @@ -15708,19 +15754,19 @@ <code class="ruby"></code> </li> - <li class="covered" data-hits="1" data-linenumber="51"> - <span class="hits">1</span> + <li class="missed" data-hits="0" data-linenumber="51"> + <code class="ruby"> expect(page).to have_content &#39;No Pages&#39;</code> </li> - <li class="covered" data-hits="1" data-linenumber="52"> - <span class="hits">1</span> + <li class="missed" data-hits="0" data-linenumber="52"> + <code class="ruby"> expect(page).to have_link &#39;New Homepage&#39;</code> </li> <li class="never" data-hits="" data-linenumber="53"> @@ -15741,12 +15787,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="f651b1e0d6b03b639bb1910679349dcb5c4906d8"> + <div class="source_table" id="26d35c1978083211ae85513115d98df410ca5244"> <div class="header"> <h3>spec/models/layout_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>19</b> relevant lines. @@ -15933,12 +15980,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="5e6e398d1f9a901307ea91dab9ee535aa8c9a444"> + <div class="source_table" id="a251c7546c3386878c1808f13620f76a33137872"> <div class="header"> <h3>spec/rails_helper.rb</h3> <h4><span class="green">95.83 %</span> covered</h4> <div> <b>24</b> relevant lines. @@ -16389,12 +16437,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="e26ef2de8407666da2a4b16334e43c210a4e8735"> + <div class="source_table" id="2faf97185635284b364ffa6cdbc7f168db049fdb"> <div class="header"> <h3>spec/routing/welcome_routing_spec.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>8</b> relevant lines. @@ -16515,12 +16564,13 @@ </li> </ol> </pre> </div> + - <div class="source_table" id="992b2e5d02f76777327edeb5263d89e2cab32d72"> + <div class="source_table" id="e8c568b143982375ae5eef071184d4fa41bfa61f"> <div class="header"> <h3>spec/support/custom_actions.rb</h3> <h4><span class="green">100.0 %</span> covered</h4> <div> <b>5</b> relevant lines. @@ -16593,9 +16643,10 @@ </li> </ol> </pre> </div> + </div> </div> </body> </html>