branston 0.3.6 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/lib/branston/app/controllers/scenarios_controller.rb +6 -5
  2. data/lib/branston/app/controllers/stories_controller.rb +101 -89
  3. data/lib/branston/app/models/story.rb +30 -1
  4. data/lib/branston/app/models/user.rb +4 -0
  5. data/lib/branston/app/views/iterations/index.html.erb +1 -1
  6. data/lib/branston/app/views/layouts/_header.html.erb +1 -2
  7. data/lib/branston/app/views/scenarios/_scenario.html.erb +6 -3
  8. data/lib/branston/app/views/scenarios/_scenarios.html.erb +4 -2
  9. data/lib/branston/app/views/stories/_form.html.erb +15 -4
  10. data/lib/branston/app/views/stories/_story.html.erb +26 -6
  11. data/lib/branston/app/views/stories/edit.html.erb +3 -3
  12. data/lib/branston/app/views/stories/index.html.erb +22 -3
  13. data/lib/branston/app/views/stories/new.html.erb +2 -2
  14. data/lib/branston/app/views/stories/show.html.erb +3 -3
  15. data/lib/branston/config/routes.rb +7 -4
  16. data/lib/branston/coverage/app-controllers-application_controller_rb.html +1 -1
  17. data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +1 -1
  18. data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +1 -1
  19. data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +1 -1
  20. data/lib/branston/coverage/app-controllers-releases_controller_rb.html +1 -1
  21. data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +18 -12
  22. data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +1 -1
  23. data/lib/branston/coverage/app-controllers-stories_controller_rb.html +193 -121
  24. data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +1 -1
  25. data/lib/branston/coverage/app-controllers-users_controller_rb.html +1 -1
  26. data/lib/branston/coverage/app-helpers-application_helper_rb.html +1 -1
  27. data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +1 -1
  28. data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +1 -1
  29. data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +1 -1
  30. data/lib/branston/coverage/app-helpers-releases_helper_rb.html +1 -1
  31. data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +1 -1
  32. data/lib/branston/coverage/app-helpers-stories_helper_rb.html +1 -1
  33. data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +1 -1
  34. data/lib/branston/coverage/app-models-iteration_rb.html +1 -1
  35. data/lib/branston/coverage/app-models-outcome_rb.html +1 -1
  36. data/lib/branston/coverage/app-models-participation_rb.html +1 -1
  37. data/lib/branston/coverage/app-models-precondition_rb.html +1 -1
  38. data/lib/branston/coverage/app-models-release_rb.html +1 -1
  39. data/lib/branston/coverage/app-models-scenario_rb.html +1 -1
  40. data/lib/branston/coverage/app-models-story_rb.html +192 -18
  41. data/lib/branston/coverage/app-models-user_rb.html +33 -9
  42. data/lib/branston/coverage/app-models-user_role_rb.html +1 -1
  43. data/lib/branston/coverage/index.html +13 -13
  44. data/lib/branston/coverage/lib-client_rb.html +1 -1
  45. data/lib/branston/coverage/lib-faker_extras_rb.html +1 -1
  46. data/lib/branston/coverage/lib-story_generator_rb.html +1 -1
  47. data/lib/branston/db/development.sqlite3 +0 -0
  48. data/lib/branston/db/migrate/20091223100903_add_status_to_story.rb +11 -0
  49. data/lib/branston/db/pristine.sqlite3 +0 -0
  50. data/lib/branston/db/schema.rb +5 -3
  51. data/lib/branston/db/test.sqlite3 +0 -0
  52. data/lib/branston/lib/branston.rb +4 -2
  53. data/lib/branston/log/development.log +4970 -0
  54. data/lib/branston/log/test.log +88225 -0
  55. data/lib/branston/test/blueprints.rb +10 -7
  56. data/lib/branston/test/functional/scenarios_controller_test.rb +22 -15
  57. data/lib/branston/test/functional/stories_controller_test.rb +51 -30
  58. data/lib/branston/test/unit/story_test.rb +47 -7
  59. data/lib/branston/test/unit/user_test.rb +4 -0
  60. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +3 -2
  61. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +2041 -1307
  62. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +7922 -7922
  63. data/lib/branston/vendor/plugins/state_machine/CHANGELOG.rdoc +298 -0
  64. data/lib/branston/vendor/plugins/state_machine/LICENSE +20 -0
  65. data/lib/branston/vendor/plugins/state_machine/README.rdoc +466 -0
  66. data/lib/branston/vendor/plugins/state_machine/Rakefile +98 -0
  67. data/lib/branston/vendor/plugins/state_machine/examples/AutoShop_state.png +0 -0
  68. data/lib/branston/vendor/plugins/state_machine/examples/Car_state.png +0 -0
  69. data/lib/branston/vendor/plugins/state_machine/examples/TrafficLight_state.png +0 -0
  70. data/lib/branston/vendor/plugins/state_machine/examples/Vehicle_state.png +0 -0
  71. data/lib/branston/vendor/plugins/state_machine/examples/auto_shop.rb +11 -0
  72. data/lib/branston/vendor/plugins/state_machine/examples/car.rb +19 -0
  73. data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/controller.rb +51 -0
  74. data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/model.rb +28 -0
  75. data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_edit.html.erb +24 -0
  76. data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_index.html.erb +23 -0
  77. data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_new.html.erb +13 -0
  78. data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_show.html.erb +17 -0
  79. data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/controller.rb +43 -0
  80. data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/migration.rb +11 -0
  81. data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/model.rb +23 -0
  82. data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_edit.html.erb +25 -0
  83. data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_index.html.erb +23 -0
  84. data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_new.html.erb +14 -0
  85. data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_show.html.erb +17 -0
  86. data/lib/branston/vendor/plugins/state_machine/examples/traffic_light.rb +7 -0
  87. data/lib/branston/vendor/plugins/state_machine/examples/vehicle.rb +31 -0
  88. data/lib/branston/vendor/plugins/state_machine/init.rb +1 -0
  89. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/assertions.rb +36 -0
  90. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/callback.rb +189 -0
  91. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/condition_proxy.rb +94 -0
  92. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/eval_helpers.rb +67 -0
  93. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/event.rb +252 -0
  94. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/event_collection.rb +122 -0
  95. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/extensions.rb +149 -0
  96. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/guard.rb +230 -0
  97. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record/locale.rb +11 -0
  98. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record/observer.rb +41 -0
  99. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record.rb +492 -0
  100. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/data_mapper/observer.rb +139 -0
  101. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/data_mapper.rb +351 -0
  102. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/sequel.rb +322 -0
  103. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations.rb +68 -0
  104. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/machine.rb +1467 -0
  105. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/machine_collection.rb +155 -0
  106. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/matcher.rb +123 -0
  107. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/matcher_helpers.rb +54 -0
  108. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/node_collection.rb +152 -0
  109. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/state.rb +249 -0
  110. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/state_collection.rb +112 -0
  111. data/lib/branston/vendor/plugins/state_machine/lib/state_machine/transition.rb +394 -0
  112. data/lib/branston/vendor/plugins/state_machine/lib/state_machine.rb +388 -0
  113. data/lib/branston/vendor/plugins/state_machine/state_machine.gemspec +30 -0
  114. data/lib/branston/vendor/plugins/state_machine/tasks/state_machine.rake +1 -0
  115. data/lib/branston/vendor/plugins/state_machine/tasks/state_machine.rb +30 -0
  116. data/lib/branston/vendor/plugins/state_machine/test/classes/switch.rb +11 -0
  117. data/lib/branston/vendor/plugins/state_machine/test/functional/state_machine_test.rb +941 -0
  118. data/lib/branston/vendor/plugins/state_machine/test/test_helper.rb +4 -0
  119. data/lib/branston/vendor/plugins/state_machine/test/unit/assertions_test.rb +40 -0
  120. data/lib/branston/vendor/plugins/state_machine/test/unit/callback_test.rb +455 -0
  121. data/lib/branston/vendor/plugins/state_machine/test/unit/condition_proxy_test.rb +328 -0
  122. data/lib/branston/vendor/plugins/state_machine/test/unit/eval_helpers_test.rb +120 -0
  123. data/lib/branston/vendor/plugins/state_machine/test/unit/event_collection_test.rb +326 -0
  124. data/lib/branston/vendor/plugins/state_machine/test/unit/event_test.rb +743 -0
  125. data/lib/branston/vendor/plugins/state_machine/test/unit/guard_test.rb +908 -0
  126. data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/active_record_test.rb +1367 -0
  127. data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/data_mapper_test.rb +962 -0
  128. data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/sequel_test.rb +859 -0
  129. data/lib/branston/vendor/plugins/state_machine/test/unit/integrations_test.rb +42 -0
  130. data/lib/branston/vendor/plugins/state_machine/test/unit/invalid_event_test.rb +7 -0
  131. data/lib/branston/vendor/plugins/state_machine/test/unit/invalid_transition_test.rb +7 -0
  132. data/lib/branston/vendor/plugins/state_machine/test/unit/machine_collection_test.rb +938 -0
  133. data/lib/branston/vendor/plugins/state_machine/test/unit/machine_test.rb +2004 -0
  134. data/lib/branston/vendor/plugins/state_machine/test/unit/matcher_helpers_test.rb +37 -0
  135. data/lib/branston/vendor/plugins/state_machine/test/unit/matcher_test.rb +155 -0
  136. data/lib/branston/vendor/plugins/state_machine/test/unit/node_collection_test.rb +207 -0
  137. data/lib/branston/vendor/plugins/state_machine/test/unit/state_collection_test.rb +280 -0
  138. data/lib/branston/vendor/plugins/state_machine/test/unit/state_machine_test.rb +31 -0
  139. data/lib/branston/vendor/plugins/state_machine/test/unit/state_test.rb +795 -0
  140. data/lib/branston/vendor/plugins/state_machine/test/unit/transition_test.rb +1212 -0
  141. metadata +81 -2
@@ -603,7 +603,7 @@
603
603
  </tbody>
604
604
  </table>
605
605
 
606
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
606
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
607
607
 
608
608
  </body>
609
609
  </html>
@@ -225,7 +225,7 @@
225
225
  </tbody>
226
226
  </table>
227
227
 
228
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
228
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
229
229
 
230
230
  </body>
231
231
  </html>
@@ -141,7 +141,7 @@
141
141
  </tbody>
142
142
  </table>
143
143
 
144
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
144
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
145
145
 
146
146
  </body>
147
147
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
72
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
73
73
 
74
74
  </body>
75
75
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
72
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
73
73
 
74
74
  </body>
75
75
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
72
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
73
73
 
74
74
  </body>
75
75
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
72
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
73
73
 
74
74
  </body>
75
75
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
72
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
73
73
 
74
74
  </body>
75
75
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
72
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
73
73
 
74
74
  </body>
75
75
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
72
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
73
73
 
74
74
  </body>
75
75
  </html>
@@ -147,7 +147,7 @@
147
147
  </tbody>
148
148
  </table>
149
149
 
150
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
150
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
151
151
 
152
152
  </body>
153
153
  </html>
@@ -153,7 +153,7 @@
153
153
  </tbody>
154
154
  </table>
155
155
 
156
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
156
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
157
157
 
158
158
  </body>
159
159
  </html>
@@ -99,7 +99,7 @@
99
99
  </tbody>
100
100
  </table>
101
101
 
102
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
102
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
103
103
 
104
104
  </body>
105
105
  </html>
@@ -153,7 +153,7 @@
153
153
  </tbody>
154
154
  </table>
155
155
 
156
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
156
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
157
157
 
158
158
  </body>
159
159
  </html>
@@ -99,7 +99,7 @@
99
99
  </tbody>
100
100
  </table>
101
101
 
102
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
102
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
103
103
 
104
104
  </body>
105
105
  </html>
@@ -141,7 +141,7 @@
141
141
  </tbody>
142
142
  </table>
143
143
 
144
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
144
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
145
145
 
146
146
  </body>
147
147
  </html>
@@ -28,8 +28,8 @@
28
28
  <tbody>
29
29
  <tr>
30
30
  <td class="left_align"><a href="app-models-story_rb.html">app/models/story.rb</a></td>
31
- <td class='right_align'><tt>33</tt></td>
32
- <td class='right_align'><tt>18</tt></td>
31
+ <td class='right_align'><tt>62</tt></td>
32
+ <td class='right_align'><tt>36</tt></td>
33
33
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
34
34
  <div class="percent_graph">
35
35
  <div class="covered" style="width:100px"></div>
@@ -165,97 +165,271 @@
165
165
 
166
166
 
167
167
  <tr class="marked">
168
- <td><pre><a name="line19">19</a> named_scope :in_progress, :conditions =&gt; ['iteration_id IS NOT ?', nil]</pre></td>
168
+ <td><pre><a name="line19">19</a> named_scope :unassigned, :conditions =&gt; 'status = &quot;new&quot;'</pre></td>
169
+ </tr>
170
+
171
+
172
+
173
+ <tr class="marked">
174
+ <td><pre><a name="line20">20</a> named_scope :in_progress, :conditions =&gt; 'status = &quot;in_progress&quot;'</pre></td>
175
+ </tr>
176
+
177
+
178
+
179
+ <tr class="marked">
180
+ <td><pre><a name="line21">21</a> named_scope :completed, :conditions =&gt; 'status = &quot;completed&quot;'</pre></td>
181
+ </tr>
182
+
183
+
184
+
185
+ <tr class="marked">
186
+ <td><pre><a name="line22">22</a> named_scope :for_iteration, lambda { |id| { :conditions =&gt; ['iteration_id = ?',</pre></td>
187
+ </tr>
188
+
189
+
190
+
191
+ <tr class="marked">
192
+ <td><pre><a name="line23">23</a> id] } }</pre></td>
169
193
  </tr>
170
194
 
171
195
 
172
196
 
173
197
  <tr class="inferred">
174
- <td><pre><a name="line20">20</a> </pre></td>
198
+ <td><pre><a name="line24">24</a> </pre></td>
175
199
  </tr>
176
200
 
177
201
 
178
202
 
179
203
  <tr class="marked">
180
- <td><pre><a name="line21">21</a> before_save :set_slug</pre></td>
204
+ <td><pre><a name="line25">25</a> before_save :set_slug</pre></td>
205
+ </tr>
206
+
207
+
208
+
209
+ <tr class="inferred">
210
+ <td><pre><a name="line26">26</a> </pre></td>
211
+ </tr>
212
+
213
+
214
+
215
+ <tr class="inferred">
216
+ <td><pre><a name="line27">27</a> # Story states</pre></td>
217
+ </tr>
218
+
219
+
220
+
221
+ <tr class="inferred">
222
+ <td><pre><a name="line28">28</a> # New - A story that has been drafted, but is not being worked on</pre></td>
223
+ </tr>
224
+
225
+
226
+
227
+ <tr class="inferred">
228
+ <td><pre><a name="line29">29</a> # In Progress - A story that is being actioned by a member of the development </pre></td>
229
+ </tr>
230
+
231
+
232
+
233
+ <tr class="inferred">
234
+ <td><pre><a name="line30">30</a> # team</pre></td>
235
+ </tr>
236
+
237
+
238
+
239
+ <tr class="inferred">
240
+ <td><pre><a name="line31">31</a> # Completed - A story that has been implemented and tested by the development </pre></td>
241
+ </tr>
242
+
243
+
244
+
245
+ <tr class="inferred">
246
+ <td><pre><a name="line32">32</a> # team</pre></td>
181
247
  </tr>
182
248
 
183
249
 
184
250
 
185
251
  <tr class="inferred">
186
- <td><pre><a name="line22">22</a> </pre></td>
252
+ <td><pre><a name="line33">33</a> #</pre></td>
187
253
  </tr>
188
254
 
189
255
 
190
256
 
191
257
  <tr class="marked">
192
- <td><pre><a name="line23">23</a> def to_param</pre></td>
258
+ <td><pre><a name="line34">34</a> state_machine :status, :initial =&gt; :new do</pre></td>
193
259
  </tr>
194
260
 
195
261
 
196
262
 
197
263
  <tr class="marked">
198
- <td><pre><a name="line24">24</a> title.parameterize</pre></td>
264
+ <td><pre><a name="line35">35</a> state :new</pre></td>
265
+ </tr>
266
+
267
+
268
+
269
+ <tr class="marked">
270
+ <td><pre><a name="line36">36</a> state :in_progress</pre></td>
271
+ </tr>
272
+
273
+
274
+
275
+ <tr class="marked">
276
+ <td><pre><a name="line37">37</a> state :completed</pre></td>
199
277
  </tr>
200
278
 
201
279
 
202
280
 
203
281
  <tr class="inferred">
204
- <td><pre><a name="line25">25</a> end</pre></td>
282
+ <td><pre><a name="line38">38</a> </pre></td>
283
+ </tr>
284
+
285
+
286
+
287
+ <tr class="marked">
288
+ <td><pre><a name="line39">39</a> event :assign do</pre></td>
289
+ </tr>
290
+
291
+
292
+
293
+ <tr class="marked">
294
+ <td><pre><a name="line40">40</a> transition :new =&gt; :in_progress</pre></td>
205
295
  </tr>
206
296
 
207
297
 
208
298
 
209
299
  <tr class="inferred">
210
- <td><pre><a name="line26">26</a> </pre></td>
300
+ <td><pre><a name="line41">41</a> end</pre></td>
301
+ </tr>
302
+
303
+
304
+
305
+ <tr class="inferred">
306
+ <td><pre><a name="line42">42</a> </pre></td>
307
+ </tr>
308
+
309
+
310
+
311
+ <tr class="marked">
312
+ <td><pre><a name="line43">43</a> event :finish do</pre></td>
313
+ </tr>
314
+
315
+
316
+
317
+ <tr class="marked">
318
+ <td><pre><a name="line44">44</a> transition :in_progress =&gt; :completed</pre></td>
319
+ </tr>
320
+
321
+
322
+
323
+ <tr class="inferred">
324
+ <td><pre><a name="line45">45</a> end</pre></td>
325
+ </tr>
326
+
327
+
328
+
329
+ <tr class="inferred">
330
+ <td><pre><a name="line46">46</a> </pre></td>
331
+ </tr>
332
+
333
+
334
+
335
+ <tr class="marked">
336
+ <td><pre><a name="line47">47</a> after_transition any =&gt; :completed do |story, transition|</pre></td>
337
+ </tr>
338
+
339
+
340
+
341
+ <tr class="marked">
342
+ <td><pre><a name="line48">48</a> story.completed_date = Date.today</pre></td>
343
+ </tr>
344
+
345
+
346
+
347
+ <tr class="inferred">
348
+ <td><pre><a name="line49">49</a> end</pre></td>
349
+ </tr>
350
+
351
+
352
+
353
+ <tr class="inferred">
354
+ <td><pre><a name="line50">50</a> end</pre></td>
355
+ </tr>
356
+
357
+
358
+
359
+ <tr class="inferred">
360
+ <td><pre><a name="line51">51</a> </pre></td>
361
+ </tr>
362
+
363
+
364
+
365
+ <tr class="marked">
366
+ <td><pre><a name="line52">52</a> def to_param</pre></td>
367
+ </tr>
368
+
369
+
370
+
371
+ <tr class="marked">
372
+ <td><pre><a name="line53">53</a> title.parameterize</pre></td>
373
+ </tr>
374
+
375
+
376
+
377
+ <tr class="inferred">
378
+ <td><pre><a name="line54">54</a> end</pre></td>
379
+ </tr>
380
+
381
+
382
+
383
+ <tr class="inferred">
384
+ <td><pre><a name="line55">55</a> </pre></td>
211
385
  </tr>
212
386
 
213
387
 
214
388
 
215
389
  <tr class="marked">
216
- <td><pre><a name="line27">27</a> private</pre></td>
390
+ <td><pre><a name="line56">56</a> private</pre></td>
217
391
  </tr>
218
392
 
219
393
 
220
394
 
221
395
  <tr class="marked">
222
- <td><pre><a name="line28">28</a> def set_slug</pre></td>
396
+ <td><pre><a name="line57">57</a> def set_slug</pre></td>
223
397
  </tr>
224
398
 
225
399
 
226
400
 
227
401
  <tr class="marked">
228
- <td><pre><a name="line29">29</a> self.slug = self.to_param</pre></td>
402
+ <td><pre><a name="line58">58</a> self.slug = self.to_param</pre></td>
229
403
  </tr>
230
404
 
231
405
 
232
406
 
233
407
  <tr class="inferred">
234
- <td><pre><a name="line30">30</a> end</pre></td>
408
+ <td><pre><a name="line59">59</a> end</pre></td>
235
409
  </tr>
236
410
 
237
411
 
238
412
 
239
413
  <tr class="inferred">
240
- <td><pre><a name="line31">31</a> </pre></td>
414
+ <td><pre><a name="line60">60</a> </pre></td>
241
415
  </tr>
242
416
 
243
417
 
244
418
 
245
419
  <tr class="inferred">
246
- <td><pre><a name="line32">32</a> end</pre></td>
420
+ <td><pre><a name="line61">61</a> end</pre></td>
247
421
  </tr>
248
422
 
249
423
 
250
424
 
251
425
  <tr class="inferred">
252
- <td><pre><a name="line33">33</a> </pre></td>
426
+ <td><pre><a name="line62">62</a> </pre></td>
253
427
  </tr>
254
428
 
255
429
  </tbody>
256
430
  </table>
257
431
 
258
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
432
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
259
433
 
260
434
  </body>
261
435
  </html>
@@ -28,8 +28,8 @@
28
28
  <tbody>
29
29
  <tr>
30
30
  <td class="left_align"><a href="app-models-user_rb.html">app/models/user.rb</a></td>
31
- <td class='right_align'><tt>56</tt></td>
32
- <td class='right_align'><tt>32</tt></td>
31
+ <td class='right_align'><tt>60</tt></td>
32
+ <td class='right_align'><tt>35</tt></td>
33
33
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
34
34
  <div class="percent_graph">
35
35
  <div class="covered" style="width:100px"></div>
@@ -357,25 +357,25 @@
357
357
 
358
358
 
359
359
  <tr class="inferred">
360
- <td><pre><a name="line51">51</a> </pre></td>
360
+ <td><pre><a name="line51">51</a> </pre></td>
361
361
  </tr>
362
362
 
363
363
 
364
364
 
365
365
  <tr class="marked">
366
- <td><pre><a name="line52">52</a> protected</pre></td>
366
+ <td><pre><a name="line52">52</a> def to_s</pre></td>
367
367
  </tr>
368
368
 
369
369
 
370
370
 
371
- <tr class="inferred">
372
- <td><pre><a name="line53">53</a> </pre></td>
371
+ <tr class="marked">
372
+ <td><pre><a name="line53">53</a> login</pre></td>
373
373
  </tr>
374
374
 
375
375
 
376
376
 
377
377
  <tr class="inferred">
378
- <td><pre><a name="line54">54</a> </pre></td>
378
+ <td><pre><a name="line54">54</a> end</pre></td>
379
379
  </tr>
380
380
 
381
381
 
@@ -386,14 +386,38 @@
386
386
 
387
387
 
388
388
 
389
+ <tr class="marked">
390
+ <td><pre><a name="line56">56</a> protected</pre></td>
391
+ </tr>
392
+
393
+
394
+
395
+ <tr class="inferred">
396
+ <td><pre><a name="line57">57</a> </pre></td>
397
+ </tr>
398
+
399
+
400
+
401
+ <tr class="inferred">
402
+ <td><pre><a name="line58">58</a> </pre></td>
403
+ </tr>
404
+
405
+
406
+
407
+ <tr class="inferred">
408
+ <td><pre><a name="line59">59</a> </pre></td>
409
+ </tr>
410
+
411
+
412
+
389
413
  <tr class="inferred">
390
- <td><pre><a name="line56">56</a> end</pre></td>
414
+ <td><pre><a name="line60">60</a> end</pre></td>
391
415
  </tr>
392
416
 
393
417
  </tbody>
394
418
  </table>
395
419
 
396
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
420
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
397
421
 
398
422
  </body>
399
423
  </html>
@@ -99,7 +99,7 @@
99
99
  </tbody>
100
100
  </table>
101
101
 
102
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
102
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
103
103
 
104
104
  </body>
105
105
  </html>
@@ -48,14 +48,14 @@
48
48
  <tfoot>
49
49
  <tr>
50
50
  <td class="left_align">TOTAL</td>
51
- <td class='right_align'><tt>1246</tt></td>
52
- <td class='right_align'><tt>879</tt></td>
53
- <td class="left_align"><div class="percent_graph_legend"><tt class=''>98.80%</tt></div>
51
+ <td class='right_align'><tt>1292</tt></td>
52
+ <td class='right_align'><tt>912</tt></td>
53
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>98.84%</tt></div>
54
54
  <div class="percent_graph">
55
55
  <div class="covered" style="width:99px"></div>
56
56
  <div class="uncovered" style="width:1px"></div>
57
57
  </div></td>
58
- <td class="left_align"><div class="percent_graph_legend"><tt class='coverage_total'>98.41%</tt></div>
58
+ <td class="left_align"><div class="percent_graph_legend"><tt class='coverage_total'>98.46%</tt></div>
59
59
  <div class="percent_graph">
60
60
  <div class="covered" style="width:98px"></div>
61
61
  <div class="uncovered" style="width:2px"></div>
@@ -194,8 +194,8 @@
194
194
 
195
195
  <tr class="all_files all_coverage 110 app controllers even">
196
196
  <td class="left_align"><a href="app-controllers-scenarios_controller_rb.html">app/controllers/scenarios_controller.rb</a></td>
197
- <td class='right_align'><tt>104</tt></td>
198
- <td class='right_align'><tt>76</tt></td>
197
+ <td class='right_align'><tt>105</tt></td>
198
+ <td class='right_align'><tt>77</tt></td>
199
199
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
200
200
  <div class="percent_graph">
201
201
  <div class="covered" style="width:100px"></div>
@@ -322,8 +322,8 @@
322
322
 
323
323
  <tr class="all_files all_coverage 110 app models even">
324
324
  <td class="left_align"><a href="app-models-user_rb.html">app/models/user.rb</a></td>
325
- <td class='right_align'><tt>56</tt></td>
326
- <td class='right_align'><tt>32</tt></td>
325
+ <td class='right_align'><tt>60</tt></td>
326
+ <td class='right_align'><tt>35</tt></td>
327
327
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
328
328
  <div class="percent_graph">
329
329
  <div class="covered" style="width:100px"></div>
@@ -338,8 +338,8 @@
338
338
 
339
339
  <tr class="all_files all_coverage 110 app models odd">
340
340
  <td class="left_align"><a href="app-models-story_rb.html">app/models/story.rb</a></td>
341
- <td class='right_align'><tt>33</tt></td>
342
- <td class='right_align'><tt>18</tt></td>
341
+ <td class='right_align'><tt>62</tt></td>
342
+ <td class='right_align'><tt>36</tt></td>
343
343
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
344
344
  <div class="percent_graph">
345
345
  <div class="covered" style="width:100px"></div>
@@ -450,8 +450,8 @@
450
450
 
451
451
  <tr class="all_files all_coverage 110 app controllers even">
452
452
  <td class="left_align"><a href="app-controllers-stories_controller_rb.html">app/controllers/stories_controller.rb</a></td>
453
- <td class='right_align'><tt>122</tt></td>
454
- <td class='right_align'><tt>89</tt></td>
453
+ <td class='right_align'><tt>134</tt></td>
454
+ <td class='right_align'><tt>100</tt></td>
455
455
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
456
456
  <div class="percent_graph">
457
457
  <div class="covered" style="width:100px"></div>
@@ -548,7 +548,7 @@
548
548
  </table>
549
549
  </div>
550
550
 
551
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
551
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
552
552
 
553
553
  <script type="text/javascript">
554
554
  $(document).ready(function(){$("#report_table").tablesorter({widgets: ['zebra'], textExtraction: 'complex'});});
@@ -531,7 +531,7 @@
531
531
  </tbody>
532
532
  </table>
533
533
 
534
- <p>Generated on Fri Dec 11 11:38:48 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
534
+ <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
535
535
 
536
536
  </body>
537
537
  </html>