branston 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. data/lib/branston/app/controllers/iterations_controller.rb +2 -0
  2. data/lib/branston/app/controllers/stories_controller.rb +93 -53
  3. data/lib/branston/app/helpers/iterations_helper.rb +38 -0
  4. data/lib/branston/app/models/iteration.rb +12 -0
  5. data/lib/branston/app/views/iterations/index.html.erb +1 -0
  6. data/lib/branston/app/views/iterations/show.html.erb +6 -1
  7. data/lib/branston/app/views/stories/index.html.erb +0 -6
  8. data/lib/branston/config/environment.rb +2 -2
  9. data/lib/branston/config/routes.rb +1 -1
  10. data/lib/branston/coverage/app-controllers-application_controller_rb.html +1 -1
  11. data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +101 -107
  12. data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +102 -114
  13. data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +90 -54
  14. data/lib/branston/coverage/app-controllers-releases_controller_rb.html +89 -101
  15. data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +77 -101
  16. data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +42 -60
  17. data/lib/branston/coverage/app-controllers-stories_controller_rb.html +110 -260
  18. data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +87 -123
  19. data/lib/branston/coverage/app-controllers-users_controller_rb.html +27 -39
  20. data/lib/branston/coverage/app-helpers-application_helper_rb.html +7 -25
  21. data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +1 -1
  22. data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +1 -1
  23. data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +1 -1
  24. data/lib/branston/coverage/app-helpers-releases_helper_rb.html +1 -1
  25. data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +1 -1
  26. data/lib/branston/coverage/app-helpers-stories_helper_rb.html +1 -1
  27. data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +1 -1
  28. data/lib/branston/coverage/app-models-iteration_rb.html +1 -1
  29. data/lib/branston/coverage/app-models-outcome_rb.html +1 -1
  30. data/lib/branston/coverage/app-models-participation_rb.html +1 -1
  31. data/lib/branston/coverage/app-models-precondition_rb.html +3 -9
  32. data/lib/branston/coverage/app-models-release_rb.html +1 -1
  33. data/lib/branston/coverage/app-models-scenario_rb.html +3 -3
  34. data/lib/branston/coverage/app-models-story_rb.html +8 -254
  35. data/lib/branston/coverage/app-models-user_rb.html +9 -33
  36. data/lib/branston/coverage/app-models-user_role_rb.html +1 -1
  37. data/lib/branston/coverage/index.html +90 -106
  38. data/lib/branston/coverage/lib-faker_extras_rb.html +1 -1
  39. data/lib/branston/coverage/lib-story_generator_rb.html +49 -43
  40. data/lib/branston/db/development.sqlite3 +0 -0
  41. data/lib/branston/db/production.sqlite3 +0 -0
  42. data/lib/branston/db/test.sqlite3 +0 -0
  43. data/lib/branston/log/development.log +1111 -5708
  44. data/lib/branston/log/test.log +23047 -87379
  45. metadata +13 -6
  46. data/lib/branston/coverage/lib-client_rb.html +0 -537
  47. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +0 -8
  48. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +0 -6039
  49. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +0 -9858
@@ -28,8 +28,8 @@
28
28
  <tbody>
29
29
  <tr>
30
30
  <td class="left_align"><a href="app-controllers-users_controller_rb.html">app/controllers/users_controller.rb</a></td>
31
- <td class='right_align'><tt>28</tt></td>
32
- <td class='right_align'><tt>19</tt></td>
31
+ <td class='right_align'><tt>26</tt></td>
32
+ <td class='right_align'><tt>18</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>
@@ -68,164 +68,152 @@
68
68
 
69
69
 
70
70
 
71
- <tr class="marked">
72
- <td><pre><a name="line3">3</a> layout 'main'</pre></td>
73
- </tr>
74
-
75
-
76
-
77
- <tr class="inferred">
78
- <td><pre><a name="line4">4</a> </pre></td>
79
- </tr>
80
-
81
-
82
-
83
71
  <tr class="inferred">
84
- <td><pre><a name="line5">5</a> # render new.rhtml</pre></td>
72
+ <td><pre><a name="line3">3</a> # render new.rhtml</pre></td>
85
73
  </tr>
86
74
 
87
75
 
88
76
 
89
77
  <tr class="marked">
90
- <td><pre><a name="line6">6</a> def new</pre></td>
78
+ <td><pre><a name="line4">4</a> def new</pre></td>
91
79
  </tr>
92
80
 
93
81
 
94
82
 
95
83
  <tr class="marked">
96
- <td><pre><a name="line7">7</a> @user = User.new</pre></td>
84
+ <td><pre><a name="line5">5</a> @user = User.new</pre></td>
97
85
  </tr>
98
86
 
99
87
 
100
88
 
101
89
  <tr class="inferred">
102
- <td><pre><a name="line8">8</a> end</pre></td>
90
+ <td><pre><a name="line6">6</a> end</pre></td>
103
91
  </tr>
104
92
 
105
93
 
106
94
 
107
95
  <tr class="inferred">
108
- <td><pre><a name="line9">9</a> </pre></td>
96
+ <td><pre><a name="line7">7</a> </pre></td>
109
97
  </tr>
110
98
 
111
99
 
112
100
 
113
101
  <tr class="marked">
114
- <td><pre><a name="line10">10</a> def create</pre></td>
102
+ <td><pre><a name="line8">8</a> def create</pre></td>
115
103
  </tr>
116
104
 
117
105
 
118
106
 
119
107
  <tr class="marked">
120
- <td><pre><a name="line11">11</a> logout_keeping_session!</pre></td>
108
+ <td><pre><a name="line9">9</a> logout_keeping_session!</pre></td>
121
109
  </tr>
122
110
 
123
111
 
124
112
 
125
113
  <tr class="marked">
126
- <td><pre><a name="line12">12</a> @user = User.new(params[:user])</pre></td>
114
+ <td><pre><a name="line10">10</a> @user = User.new(params[:user])</pre></td>
127
115
  </tr>
128
116
 
129
117
 
130
118
 
131
119
  <tr class="marked">
132
- <td><pre><a name="line13">13</a> success = @user &amp;&amp; @user.save</pre></td>
120
+ <td><pre><a name="line11">11</a> success = @user &amp;&amp; @user.save</pre></td>
133
121
  </tr>
134
122
 
135
123
 
136
124
 
137
125
  <tr class="marked">
138
- <td><pre><a name="line14">14</a> if success &amp;&amp; @user.errors.empty?</pre></td>
126
+ <td><pre><a name="line12">12</a> if success &amp;&amp; @user.errors.empty?</pre></td>
139
127
  </tr>
140
128
 
141
129
 
142
130
 
143
131
  <tr class="inferred">
144
- <td><pre><a name="line15">15</a> # Protects against session fixation attacks, causes request forgery</pre></td>
132
+ <td><pre><a name="line13">13</a> # Protects against session fixation attacks, causes request forgery</pre></td>
145
133
  </tr>
146
134
 
147
135
 
148
136
 
149
137
  <tr class="inferred">
150
- <td><pre><a name="line16">16</a> # protection if visitor resubmits an earlier form using back</pre></td>
138
+ <td><pre><a name="line14">14</a> # protection if visitor resubmits an earlier form using back</pre></td>
151
139
  </tr>
152
140
 
153
141
 
154
142
 
155
143
  <tr class="inferred">
156
- <td><pre><a name="line17">17</a> # button. Uncomment if you understand the tradeoffs.</pre></td>
144
+ <td><pre><a name="line15">15</a> # button. Uncomment if you understand the tradeoffs.</pre></td>
157
145
  </tr>
158
146
 
159
147
 
160
148
 
161
149
  <tr class="inferred">
162
- <td><pre><a name="line18">18</a> # reset session</pre></td>
150
+ <td><pre><a name="line16">16</a> # reset session</pre></td>
163
151
  </tr>
164
152
 
165
153
 
166
154
 
167
155
  <tr class="marked">
168
- <td><pre><a name="line19">19</a> self.current_user = @user # !! now logged in</pre></td>
156
+ <td><pre><a name="line17">17</a> self.current_user = @user # !! now logged in</pre></td>
169
157
  </tr>
170
158
 
171
159
 
172
160
 
173
161
  <tr class="marked">
174
- <td><pre><a name="line20">20</a> redirect_back_or_default('/')</pre></td>
162
+ <td><pre><a name="line18">18</a> redirect_back_or_default('/')</pre></td>
175
163
  </tr>
176
164
 
177
165
 
178
166
 
179
167
  <tr class="marked">
180
- <td><pre><a name="line21">21</a> flash[:notice] = &quot;Thanks for signing up! We're sending you an email with your activation code.&quot;</pre></td>
168
+ <td><pre><a name="line19">19</a> flash[:notice] = &quot;Thanks for signing up! We're sending you an email with your activation code.&quot;</pre></td>
181
169
  </tr>
182
170
 
183
171
 
184
172
 
185
173
  <tr class="inferred">
186
- <td><pre><a name="line22">22</a> else</pre></td>
174
+ <td><pre><a name="line20">20</a> else</pre></td>
187
175
  </tr>
188
176
 
189
177
 
190
178
 
191
179
  <tr class="marked">
192
- <td><pre><a name="line23">23</a> flash[:error] = &quot;We couldn't set up that account, sorry. Please try again, or contact an admin (link is above).&quot;</pre></td>
180
+ <td><pre><a name="line21">21</a> flash[:error] = &quot;We couldn't set up that account, sorry. Please try again, or contact an admin (link is above).&quot;</pre></td>
193
181
  </tr>
194
182
 
195
183
 
196
184
 
197
185
  <tr class="marked">
198
- <td><pre><a name="line24">24</a> render :action =&gt; 'new'</pre></td>
186
+ <td><pre><a name="line22">22</a> render :action =&gt; 'new'</pre></td>
199
187
  </tr>
200
188
 
201
189
 
202
190
 
203
191
  <tr class="inferred">
204
- <td><pre><a name="line25">25</a> end</pre></td>
192
+ <td><pre><a name="line23">23</a> end</pre></td>
205
193
  </tr>
206
194
 
207
195
 
208
196
 
209
197
  <tr class="inferred">
210
- <td><pre><a name="line26">26</a> end</pre></td>
198
+ <td><pre><a name="line24">24</a> end</pre></td>
211
199
  </tr>
212
200
 
213
201
 
214
202
 
215
203
  <tr class="inferred">
216
- <td><pre><a name="line27">27</a> end</pre></td>
204
+ <td><pre><a name="line25">25</a> end</pre></td>
217
205
  </tr>
218
206
 
219
207
 
220
208
 
221
209
  <tr class="inferred">
222
- <td><pre><a name="line28">28</a> </pre></td>
210
+ <td><pre><a name="line26">26</a> </pre></td>
223
211
  </tr>
224
212
 
225
213
  </tbody>
226
214
  </table>
227
215
 
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>
216
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
229
217
 
230
218
  </body>
231
219
  </html>
@@ -28,7 +28,7 @@
28
28
  <tbody>
29
29
  <tr>
30
30
  <td class="left_align"><a href="app-helpers-application_helper_rb.html">app/helpers/application_helper.rb</a></td>
31
- <td class='right_align'><tt>14</tt></td>
31
+ <td class='right_align'><tt>11</tt></td>
32
32
  <td class='right_align'><tt>8</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">
@@ -92,56 +92,38 @@
92
92
 
93
93
 
94
94
 
95
- <tr class="inferred">
96
- <td><pre><a name="line7">7</a> # Produces a string id using the type and id of obj plus any field suffix supplied useful when</pre></td>
97
- </tr>
98
-
99
-
100
-
101
- <tr class="inferred">
102
- <td><pre><a name="line8">8</a> # assigning html ids on index pages.</pre></td>
103
- </tr>
104
-
105
-
106
-
107
- <tr class="inferred">
108
- <td><pre><a name="line9">9</a> # e.g. element_id(user, 'name') =&gt; 'User_23_name'</pre></td>
109
- </tr>
110
-
111
-
112
-
113
95
  <tr class="marked">
114
- <td><pre><a name="line10">10</a> def element_id(obj, field=&quot;&quot;)</pre></td>
96
+ <td><pre><a name="line7">7</a> def element_id(obj, field=&quot;&quot;)</pre></td>
115
97
  </tr>
116
98
 
117
99
 
118
100
 
119
101
  <tr class="marked">
120
- <td><pre><a name="line11">11</a> obj.class.to_s + '_' + obj.id.to_s + (field.blank? ? '' : '_' + field)</pre></td>
102
+ <td><pre><a name="line8">8</a> obj.class.to_s + '_' + obj.id.to_s + (field.blank? ? '' : '_' + field)</pre></td>
121
103
  </tr>
122
104
 
123
105
 
124
106
 
125
107
  <tr class="inferred">
126
- <td><pre><a name="line12">12</a> end</pre></td>
108
+ <td><pre><a name="line9">9</a> end</pre></td>
127
109
  </tr>
128
110
 
129
111
 
130
112
 
131
113
  <tr class="inferred">
132
- <td><pre><a name="line13">13</a> end</pre></td>
114
+ <td><pre><a name="line10">10</a> end</pre></td>
133
115
  </tr>
134
116
 
135
117
 
136
118
 
137
119
  <tr class="inferred">
138
- <td><pre><a name="line14">14</a> </pre></td>
120
+ <td><pre><a name="line11">11</a> </pre></td>
139
121
  </tr>
140
122
 
141
123
  </tbody>
142
124
  </table>
143
125
 
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>
126
+ <p>Generated on Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
145
127
 
146
128
  </body>
147
129
  </html>
@@ -69,7 +69,7 @@
69
69
  </tbody>
70
70
  </table>
71
71
 
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>
72
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
72
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
150
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
156
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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 Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
102
+ <p>Generated on Thu Dec 03 16:49:24 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
103
103
 
104
104
  </body>
105
105
  </html>
@@ -28,7 +28,7 @@
28
28
  <tbody>
29
29
  <tr>
30
30
  <td class="left_align"><a href="app-models-precondition_rb.html">app/models/precondition.rb</a></td>
31
- <td class='right_align'><tt>16</tt></td>
31
+ <td class='right_align'><tt>15</tt></td>
32
32
  <td class='right_align'><tt>7</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">
@@ -135,7 +135,7 @@
135
135
 
136
136
 
137
137
  <tr class="inferred">
138
- <td><pre><a name="line14">14</a> </pre></td>
138
+ <td><pre><a name="line14">14</a> </pre></td>
139
139
  </tr>
140
140
 
141
141
 
@@ -144,16 +144,10 @@
144
144
  <td><pre><a name="line15">15</a> end</pre></td>
145
145
  </tr>
146
146
 
147
-
148
-
149
- <tr class="inferred">
150
- <td><pre><a name="line16">16</a> </pre></td>
151
- </tr>
152
-
153
147
  </tbody>
154
148
  </table>
155
149
 
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>
150
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
157
151
 
158
152
  </body>
159
153
  </html>
@@ -99,7 +99,7 @@
99
99
  </tbody>
100
100
  </table>
101
101
 
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>
102
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
103
103
 
104
104
  </body>
105
105
  </html>
@@ -87,13 +87,13 @@
87
87
 
88
88
 
89
89
  <tr class="marked">
90
- <td><pre><a name="line6">6</a> has_many :outcomes, :dependent =&gt; :destroy</pre></td>
90
+ <td><pre><a name="line6">6</a> has_many :outcomes</pre></td>
91
91
  </tr>
92
92
 
93
93
 
94
94
 
95
95
  <tr class="marked">
96
- <td><pre><a name="line7">7</a> has_many :preconditions, :dependent =&gt; :destroy</pre></td>
96
+ <td><pre><a name="line7">7</a> has_many :preconditions</pre></td>
97
97
  </tr>
98
98
 
99
99
 
@@ -141,7 +141,7 @@
141
141
  </tbody>
142
142
  </table>
143
143
 
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>
144
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</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>62</tt></td>
32
- <td class='right_align'><tt>36</tt></td>
31
+ <td class='right_align'><tt>21</tt></td>
32
+ <td class='right_align'><tt>10</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>
@@ -63,7 +63,7 @@
63
63
 
64
64
 
65
65
  <tr class="inferred">
66
- <td><pre><a name="line2">2</a> </pre></td>
66
+ <td><pre><a name="line2">2</a> </pre></td>
67
67
  </tr>
68
68
 
69
69
 
@@ -135,7 +135,7 @@
135
135
 
136
136
 
137
137
  <tr class="marked">
138
- <td><pre><a name="line14">14</a> has_many :scenarios, :dependent =&gt; :destroy</pre></td>
138
+ <td><pre><a name="line14">14</a> has_many :scenarios</pre></td>
139
139
  </tr>
140
140
 
141
141
 
@@ -165,271 +165,25 @@
165
165
 
166
166
 
167
167
  <tr class="marked">
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>
193
- </tr>
194
-
195
-
196
-
197
- <tr class="inferred">
198
- <td><pre><a name="line24">24</a> </pre></td>
199
- </tr>
200
-
201
-
202
-
203
- <tr class="marked">
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>
247
- </tr>
248
-
249
-
250
-
251
- <tr class="inferred">
252
- <td><pre><a name="line33">33</a> #</pre></td>
253
- </tr>
254
-
255
-
256
-
257
- <tr class="marked">
258
- <td><pre><a name="line34">34</a> state_machine :status, :initial =&gt; :new do</pre></td>
259
- </tr>
260
-
261
-
262
-
263
- <tr class="marked">
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>
277
- </tr>
278
-
279
-
280
-
281
- <tr class="inferred">
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>
295
- </tr>
296
-
297
-
298
-
299
- <tr class="inferred">
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>
385
- </tr>
386
-
387
-
388
-
389
- <tr class="marked">
390
- <td><pre><a name="line56">56</a> private</pre></td>
391
- </tr>
392
-
393
-
394
-
395
- <tr class="marked">
396
- <td><pre><a name="line57">57</a> def set_slug</pre></td>
397
- </tr>
398
-
399
-
400
-
401
- <tr class="marked">
402
- <td><pre><a name="line58">58</a> self.slug = self.to_param</pre></td>
403
- </tr>
404
-
405
-
406
-
407
- <tr class="inferred">
408
- <td><pre><a name="line59">59</a> end</pre></td>
409
- </tr>
410
-
411
-
412
-
413
- <tr class="inferred">
414
- <td><pre><a name="line60">60</a> </pre></td>
168
+ <td><pre><a name="line19">19</a> named_scope :in_progress, :conditions =&gt; ['iteration_id IS NOT ?', nil]</pre></td>
415
169
  </tr>
416
170
 
417
171
 
418
172
 
419
173
  <tr class="inferred">
420
- <td><pre><a name="line61">61</a> end</pre></td>
174
+ <td><pre><a name="line20">20</a> end</pre></td>
421
175
  </tr>
422
176
 
423
177
 
424
178
 
425
179
  <tr class="inferred">
426
- <td><pre><a name="line62">62</a> </pre></td>
180
+ <td><pre><a name="line21">21</a> </pre></td>
427
181
  </tr>
428
182
 
429
183
  </tbody>
430
184
  </table>
431
185
 
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>
186
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
433
187
 
434
188
  </body>
435
189
  </html>