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
@@ -28,8 +28,8 @@
28
28
  <tbody>
29
29
  <tr>
30
30
  <td class="left_align"><a href="app-controllers-stories_controller_rb.html">app/controllers/stories_controller.rb</a></td>
31
- <td class='right_align'><tt>122</tt></td>
32
- <td class='right_align'><tt>89</tt></td>
31
+ <td class='right_align'><tt>134</tt></td>
32
+ <td class='right_align'><tt>100</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>
@@ -81,715 +81,787 @@
81
81
 
82
82
 
83
83
  <tr class="marked">
84
- <td><pre><a name="line5">5</a> before_filter :retrieve_iterations, :only =&gt; [:new, :edit, :create, :update, :index, :show] # so everything?</pre></td>
84
+ <td><pre><a name="line5">5</a> before_filter :retrieve_iterations, :except =&gt; [:generate_feature, :show]</pre></td>
85
+ </tr>
86
+
87
+
88
+
89
+ <tr class="marked">
90
+ <td><pre><a name="line6">6</a> before_filter :load_iteration, :except =&gt; [:generate_feature, :show]</pre></td>
85
91
  </tr>
86
92
 
87
93
 
88
94
 
89
95
  <tr class="inferred">
90
- <td><pre><a name="line6">6</a> </pre></td>
96
+ <td><pre><a name="line7">7</a> </pre></td>
91
97
  </tr>
92
98
 
93
99
 
94
100
 
95
101
  <tr class="marked">
96
- <td><pre><a name="line7">7</a> in_place_edit_for :story, :title</pre></td>
102
+ <td><pre><a name="line8">8</a> in_place_edit_for :story, :title</pre></td>
97
103
  </tr>
98
104
 
99
105
 
100
106
 
101
107
  <tr class="marked">
102
- <td><pre><a name="line8">8</a> in_place_edit_for :story, :description</pre></td>
108
+ <td><pre><a name="line9">9</a> in_place_edit_for :story, :description</pre></td>
103
109
  </tr>
104
110
 
105
111
 
106
112
 
107
113
  <tr class="marked">
108
- <td><pre><a name="line9">9</a> in_place_edit_for :story, :points</pre></td>
114
+ <td><pre><a name="line10">10</a> in_place_edit_for :story, :points</pre></td>
109
115
  </tr>
110
116
 
111
117
 
112
118
 
113
119
  <tr class="inferred">
114
- <td><pre><a name="line10">10</a> </pre></td>
120
+ <td><pre><a name="line11">11</a> </pre></td>
115
121
  </tr>
116
122
 
117
123
 
118
124
 
119
125
  <tr class="marked">
120
- <td><pre><a name="line11">11</a> def generate_feature</pre></td>
126
+ <td><pre><a name="line12">12</a> def generate_feature</pre></td>
121
127
  </tr>
122
128
 
123
129
 
124
130
 
125
131
  <tr class="marked">
126
- <td><pre><a name="line12">12</a> @story = Story.find_by_slug(params[:id])</pre></td>
132
+ <td><pre><a name="line13">13</a> @story = Story.find_by_slug(params[:id])</pre></td>
127
133
  </tr>
128
134
 
129
135
 
130
136
 
131
137
  <tr class="marked">
132
- <td><pre><a name="line13">13</a> if @story.nil?</pre></td>
138
+ <td><pre><a name="line14">14</a> if @story.nil?</pre></td>
133
139
  </tr>
134
140
 
135
141
 
136
142
 
137
143
  <tr class="inferred">
138
- <td><pre><a name="line14">14</a> @story = Story.find(:first, :include =&gt; :scenarios, </pre></td>
144
+ <td><pre><a name="line15">15</a> @story = Story.find(:first, :include =&gt; :scenarios, </pre></td>
139
145
  </tr>
140
146
 
141
147
 
142
148
 
143
149
  <tr class="inferred">
144
- <td><pre><a name="line15">15</a> :conditions =&gt; ['slug LIKE ?', &quot;%#{id}%&quot;] )</pre></td>
150
+ <td><pre><a name="line16">16</a> :conditions =&gt; ['slug LIKE ?', &quot;%#{id}%&quot;] )</pre></td>
145
151
  </tr>
146
152
 
147
153
 
148
154
 
149
155
  <tr class="inferred">
150
- <td><pre><a name="line16">16</a> end</pre></td>
156
+ <td><pre><a name="line17">17</a> end</pre></td>
151
157
  </tr>
152
158
 
153
159
 
154
160
 
155
161
  <tr class="marked">
156
- <td><pre><a name="line17">17</a> @story.generate(@story)</pre></td>
162
+ <td><pre><a name="line18">18</a> @story.generate(@story)</pre></td>
157
163
  </tr>
158
164
 
159
165
 
160
166
 
161
167
  <tr class="marked">
162
- <td><pre><a name="line18">18</a> render :text =&gt; 'done'</pre></td>
168
+ <td><pre><a name="line19">19</a> render :text =&gt; 'done'</pre></td>
163
169
  </tr>
164
170
 
165
171
 
166
172
 
167
173
  <tr class="inferred">
168
- <td><pre><a name="line19">19</a> end</pre></td>
174
+ <td><pre><a name="line20">20</a> end</pre></td>
169
175
  </tr>
170
176
 
171
177
 
172
178
 
173
179
  <tr class="inferred">
174
- <td><pre><a name="line20">20</a> </pre></td>
180
+ <td><pre><a name="line21">21</a> </pre></td>
175
181
  </tr>
176
182
 
177
183
 
178
184
 
179
185
  <tr class="inferred">
180
- <td><pre><a name="line21">21</a> # GET /stories</pre></td>
186
+ <td><pre><a name="line22">22</a> # GET /stories</pre></td>
181
187
  </tr>
182
188
 
183
189
 
184
190
 
185
191
  <tr class="inferred">
186
- <td><pre><a name="line22">22</a> # GET /stories.xml</pre></td>
192
+ <td><pre><a name="line23">23</a> # GET /stories.xml</pre></td>
193
+ </tr>
194
+
195
+
196
+
197
+ <tr class="marked">
198
+ <td><pre><a name="line24">24</a> def index</pre></td>
187
199
  </tr>
188
200
 
189
201
 
190
202
 
191
203
  <tr class="marked">
192
- <td><pre><a name="line23">23</a> def index</pre></td>
204
+ <td><pre><a name="line25">25</a> @current_stories = Story.for_iteration(@iteration.id).in_progress</pre></td>
193
205
  </tr>
194
206
 
195
207
 
196
208
 
197
209
  <tr class="marked">
198
- <td><pre><a name="line24">24</a> @current_stories = Story.in_progress</pre></td>
210
+ <td><pre><a name="line26">26</a> @backlog_stories = Story.for_iteration(@iteration.id).unassigned</pre></td>
199
211
  </tr>
200
212
 
201
213
 
202
214
 
203
215
  <tr class="marked">
204
- <td><pre><a name="line25">25</a> @backlog_stories = Story.find :all, :conditions =&gt; &quot;iteration_id IS NULL&quot;</pre></td>
216
+ <td><pre><a name="line27">27</a> @completed_stories = Story.for_iteration(@iteration.id).completed</pre></td>
205
217
  </tr>
206
218
 
207
219
 
208
220
 
209
221
  <tr class="inferred">
210
- <td><pre><a name="line26">26</a> </pre></td>
222
+ <td><pre><a name="line28">28</a> </pre></td>
211
223
  </tr>
212
224
 
213
225
 
214
226
 
215
227
  <tr class="marked">
216
- <td><pre><a name="line27">27</a> respond_to do |format|</pre></td>
228
+ <td><pre><a name="line29">29</a> respond_to do |format|</pre></td>
217
229
  </tr>
218
230
 
219
231
 
220
232
 
221
233
  <tr class="marked">
222
- <td><pre><a name="line28">28</a> format.html # index.html.erb</pre></td>
234
+ <td><pre><a name="line30">30</a> format.html # index.html.erb</pre></td>
223
235
  </tr>
224
236
 
225
237
 
226
238
 
227
239
  <tr class="marked">
228
- <td><pre><a name="line29">29</a> format.xml { render :xml =&gt; @stories }</pre></td>
240
+ <td><pre><a name="line31">31</a> format.xml { render :xml =&gt; @stories }</pre></td>
229
241
  </tr>
230
242
 
231
243
 
232
244
 
233
245
  <tr class="inferred">
234
- <td><pre><a name="line30">30</a> end</pre></td>
246
+ <td><pre><a name="line32">32</a> end</pre></td>
235
247
  </tr>
236
248
 
237
249
 
238
250
 
239
251
  <tr class="inferred">
240
- <td><pre><a name="line31">31</a> end</pre></td>
252
+ <td><pre><a name="line33">33</a> end</pre></td>
241
253
  </tr>
242
254
 
243
255
 
244
256
 
245
257
  <tr class="inferred">
246
- <td><pre><a name="line32">32</a> </pre></td>
258
+ <td><pre><a name="line34">34</a> </pre></td>
247
259
  </tr>
248
260
 
249
261
 
250
262
 
251
263
  <tr class="inferred">
252
- <td><pre><a name="line33">33</a> # GET /stories/1</pre></td>
264
+ <td><pre><a name="line35">35</a> # GET /stories/1</pre></td>
253
265
  </tr>
254
266
 
255
267
 
256
268
 
257
269
  <tr class="inferred">
258
- <td><pre><a name="line34">34</a> # GET /stories/1.xml</pre></td>
270
+ <td><pre><a name="line36">36</a> # GET /stories/1.xml</pre></td>
259
271
  </tr>
260
272
 
261
273
 
262
274
 
263
275
  <tr class="marked">
264
- <td><pre><a name="line35">35</a> def show</pre></td>
276
+ <td><pre><a name="line37">37</a> def show</pre></td>
265
277
  </tr>
266
278
 
267
279
 
268
280
 
269
281
  <tr class="marked">
270
- <td><pre><a name="line36">36</a> @story = Story.find_by_slug(params[:id])</pre></td>
282
+ <td><pre><a name="line38">38</a> @story = Story.find_by_slug(params[:id])</pre></td>
271
283
  </tr>
272
284
 
273
285
 
274
286
 
275
287
  <tr class="inferred">
276
- <td><pre><a name="line37">37</a> </pre></td>
288
+ <td><pre><a name="line39">39</a> </pre></td>
277
289
  </tr>
278
290
 
279
291
 
280
292
 
281
293
  <tr class="marked">
282
- <td><pre><a name="line38">38</a> respond_to do |format|</pre></td>
294
+ <td><pre><a name="line40">40</a> respond_to do |format|</pre></td>
283
295
  </tr>
284
296
 
285
297
 
286
298
 
287
299
  <tr class="marked">
288
- <td><pre><a name="line39">39</a> if @story</pre></td>
300
+ <td><pre><a name="line41">41</a> if @story</pre></td>
289
301
  </tr>
290
302
 
291
303
 
292
304
 
293
305
  <tr class="marked">
294
- <td><pre><a name="line40">40</a> format.html # show.html.erb</pre></td>
306
+ <td><pre><a name="line42">42</a> format.html {</pre></td>
295
307
  </tr>
296
308
 
297
309
 
298
310
 
299
311
  <tr class="marked">
300
- <td><pre><a name="line41">41</a> format.xml {</pre></td>
312
+ <td><pre><a name="line43">43</a> @iteration = load_iteration</pre></td>
301
313
  </tr>
302
314
 
303
315
 
304
316
 
305
317
  <tr class="inferred">
306
- <td><pre><a name="line42">42</a> render :xml =&gt; (@story.to_xml :include =&gt; { :scenarios =&gt; {</pre></td>
318
+ <td><pre><a name="line44">44</a> }</pre></td>
319
+ </tr>
320
+
321
+
322
+
323
+ <tr class="marked">
324
+ <td><pre><a name="line45">45</a> format.xml {</pre></td>
307
325
  </tr>
308
326
 
309
327
 
310
328
 
311
329
  <tr class="inferred">
312
- <td><pre><a name="line43">43</a> :include =&gt; [:preconditions, :outcomes] } } ) }</pre></td>
330
+ <td><pre><a name="line46">46</a> render :xml =&gt; (@story.to_xml :include =&gt; { :scenarios =&gt; {</pre></td>
331
+ </tr>
332
+
333
+
334
+
335
+ <tr class="inferred">
336
+ <td><pre><a name="line47">47</a> :include =&gt; [:preconditions, :outcomes] } } ) }</pre></td>
313
337
  </tr>
314
338
 
315
339
 
316
340
 
317
341
  <tr class="marked">
318
- <td><pre><a name="line44">44</a> format.js { @active = true }</pre></td>
342
+ <td><pre><a name="line48">48</a> format.js { @active = true }</pre></td>
319
343
  </tr>
320
344
 
321
345
 
322
346
 
323
347
  <tr class="inferred">
324
- <td><pre><a name="line45">45</a> else</pre></td>
348
+ <td><pre><a name="line49">49</a> else</pre></td>
325
349
  </tr>
326
350
 
327
351
 
328
352
 
329
353
  <tr class="marked">
330
- <td><pre><a name="line46">46</a> format.html { render_optional_error_file 404 } </pre></td>
354
+ <td><pre><a name="line50">50</a> format.html {</pre></td>
355
+ </tr>
356
+
357
+
358
+
359
+ <tr class="marked">
360
+ <td><pre><a name="line51">51</a> @iteration = load_iteration</pre></td>
361
+ </tr>
362
+
363
+
364
+
365
+ <tr class="marked">
366
+ <td><pre><a name="line52">52</a> render_optional_error_file 404 </pre></td>
367
+ </tr>
368
+
369
+
370
+
371
+ <tr class="inferred">
372
+ <td><pre><a name="line53">53</a> } </pre></td>
331
373
  </tr>
332
374
 
333
375
 
334
376
 
335
377
  <tr class="marked">
336
- <td><pre><a name="line47">47</a> format.all { render :nothing =&gt; true, :status =&gt; 404 }</pre></td>
378
+ <td><pre><a name="line54">54</a> format.all { render :nothing =&gt; true, :status =&gt; 404 }</pre></td>
337
379
  </tr>
338
380
 
339
381
 
340
382
 
341
383
  <tr class="inferred">
342
- <td><pre><a name="line48">48</a> end</pre></td>
384
+ <td><pre><a name="line55">55</a> end</pre></td>
343
385
  </tr>
344
386
 
345
387
 
346
388
 
347
389
  <tr class="inferred">
348
- <td><pre><a name="line49">49</a> end</pre></td>
390
+ <td><pre><a name="line56">56</a> end</pre></td>
349
391
  </tr>
350
392
 
351
393
 
352
394
 
353
395
  <tr class="inferred">
354
- <td><pre><a name="line50">50</a> end</pre></td>
396
+ <td><pre><a name="line57">57</a> end</pre></td>
355
397
  </tr>
356
398
 
357
399
 
358
400
 
359
401
  <tr class="inferred">
360
- <td><pre><a name="line51">51</a> </pre></td>
402
+ <td><pre><a name="line58">58</a> </pre></td>
361
403
  </tr>
362
404
 
363
405
 
364
406
 
365
407
  <tr class="inferred">
366
- <td><pre><a name="line52">52</a> # GET /stories/new</pre></td>
408
+ <td><pre><a name="line59">59</a> # GET /stories/new</pre></td>
367
409
  </tr>
368
410
 
369
411
 
370
412
 
371
413
  <tr class="inferred">
372
- <td><pre><a name="line53">53</a> # GET /stories/new.xml</pre></td>
414
+ <td><pre><a name="line60">60</a> # GET /stories/new.xml</pre></td>
373
415
  </tr>
374
416
 
375
417
 
376
418
 
377
419
  <tr class="marked">
378
- <td><pre><a name="line54">54</a> def new</pre></td>
420
+ <td><pre><a name="line61">61</a> def new</pre></td>
379
421
  </tr>
380
422
 
381
423
 
382
424
 
383
425
  <tr class="marked">
384
- <td><pre><a name="line55">55</a> @story = Story.new</pre></td>
426
+ <td><pre><a name="line62">62</a> @story = Story.new(:iteration =&gt; @iteration)</pre></td>
385
427
  </tr>
386
428
 
387
429
 
388
430
 
389
431
  <tr class="inferred">
390
- <td><pre><a name="line56">56</a> </pre></td>
432
+ <td><pre><a name="line63">63</a> </pre></td>
391
433
  </tr>
392
434
 
393
435
 
394
436
 
395
437
  <tr class="marked">
396
- <td><pre><a name="line57">57</a> respond_to do |format|</pre></td>
438
+ <td><pre><a name="line64">64</a> respond_to do |format|</pre></td>
397
439
  </tr>
398
440
 
399
441
 
400
442
 
401
443
  <tr class="marked">
402
- <td><pre><a name="line58">58</a> format.html # new.html.erb</pre></td>
444
+ <td><pre><a name="line65">65</a> format.html # new.html.erb</pre></td>
403
445
  </tr>
404
446
 
405
447
 
406
448
 
407
449
  <tr class="marked">
408
- <td><pre><a name="line59">59</a> format.xml { render :xml =&gt; @story }</pre></td>
450
+ <td><pre><a name="line66">66</a> format.xml { render :xml =&gt; @story }</pre></td>
409
451
  </tr>
410
452
 
411
453
 
412
454
 
413
455
  <tr class="inferred">
414
- <td><pre><a name="line60">60</a> end</pre></td>
456
+ <td><pre><a name="line67">67</a> end</pre></td>
415
457
  </tr>
416
458
 
417
459
 
418
460
 
419
461
  <tr class="inferred">
420
- <td><pre><a name="line61">61</a> end</pre></td>
462
+ <td><pre><a name="line68">68</a> end</pre></td>
421
463
  </tr>
422
464
 
423
465
 
424
466
 
425
467
  <tr class="inferred">
426
- <td><pre><a name="line62">62</a> </pre></td>
468
+ <td><pre><a name="line69">69</a> </pre></td>
427
469
  </tr>
428
470
 
429
471
 
430
472
 
431
473
  <tr class="inferred">
432
- <td><pre><a name="line63">63</a> # GET /stories/1/edit</pre></td>
474
+ <td><pre><a name="line70">70</a> # GET /stories/1/edit</pre></td>
433
475
  </tr>
434
476
 
435
477
 
436
478
 
437
479
  <tr class="marked">
438
- <td><pre><a name="line64">64</a> def edit</pre></td>
480
+ <td><pre><a name="line71">71</a> def edit</pre></td>
439
481
  </tr>
440
482
 
441
483
 
442
484
 
443
485
  <tr class="marked">
444
- <td><pre><a name="line65">65</a> @story = Story.find_by_slug(params[:id])</pre></td>
486
+ <td><pre><a name="line72">72</a> @story = Story.find_by_slug(params[:id])</pre></td>
445
487
  </tr>
446
488
 
447
489
 
448
490
 
449
491
  <tr class="inferred">
450
- <td><pre><a name="line66">66</a> end</pre></td>
492
+ <td><pre><a name="line73">73</a> end</pre></td>
451
493
  </tr>
452
494
 
453
495
 
454
496
 
455
497
  <tr class="inferred">
456
- <td><pre><a name="line67">67</a> </pre></td>
498
+ <td><pre><a name="line74">74</a> </pre></td>
457
499
  </tr>
458
500
 
459
501
 
460
502
 
461
503
  <tr class="inferred">
462
- <td><pre><a name="line68">68</a> # POST /stories</pre></td>
504
+ <td><pre><a name="line75">75</a> # POST /stories</pre></td>
463
505
  </tr>
464
506
 
465
507
 
466
508
 
467
509
  <tr class="inferred">
468
- <td><pre><a name="line69">69</a> # POST /stories.xml</pre></td>
510
+ <td><pre><a name="line76">76</a> # POST /stories.xml</pre></td>
511
+ </tr>
512
+
513
+
514
+
515
+ <tr class="marked">
516
+ <td><pre><a name="line77">77</a> def create</pre></td>
469
517
  </tr>
470
518
 
471
519
 
472
520
 
473
521
  <tr class="marked">
474
- <td><pre><a name="line70">70</a> def create</pre></td>
522
+ <td><pre><a name="line78">78</a> @story = Story.new(params[:story])</pre></td>
475
523
  </tr>
476
524
 
477
525
 
478
526
 
479
527
  <tr class="marked">
480
- <td><pre><a name="line71">71</a> @story = Story.new(params[:story])</pre></td>
528
+ <td><pre><a name="line79">79</a> @story.author = current_user</pre></td>
481
529
  </tr>
482
530
 
483
531
 
484
532
 
485
533
  <tr class="inferred">
486
- <td><pre><a name="line72">72</a> </pre></td>
534
+ <td><pre><a name="line80">80</a> </pre></td>
487
535
  </tr>
488
536
 
489
537
 
490
538
 
491
539
  <tr class="marked">
492
- <td><pre><a name="line73">73</a> respond_to do |format|</pre></td>
540
+ <td><pre><a name="line81">81</a> respond_to do |format|</pre></td>
493
541
  </tr>
494
542
 
495
543
 
496
544
 
497
545
  <tr class="marked">
498
- <td><pre><a name="line74">74</a> if @story.save</pre></td>
546
+ <td><pre><a name="line82">82</a> if @story.save</pre></td>
499
547
  </tr>
500
548
 
501
549
 
502
550
 
503
551
  <tr class="marked">
504
- <td><pre><a name="line75">75</a> flash[:notice] = 'Story was successfully created.'</pre></td>
552
+ <td><pre><a name="line83">83</a> flash[:notice] = 'Story was successfully created.'</pre></td>
505
553
  </tr>
506
554
 
507
555
 
508
556
 
509
557
  <tr class="marked">
510
- <td><pre><a name="line76">76</a> format.html { redirect_to stories_url }</pre></td>
558
+ <td><pre><a name="line84">84</a> format.html { redirect_to iteration_stories_url(@iteration) }</pre></td>
511
559
  </tr>
512
560
 
513
561
 
514
562
 
515
563
  <tr class="marked">
516
- <td><pre><a name="line77">77</a> format.xml { render :xml =&gt; @story, :status =&gt; :created, :location =&gt; @story }</pre></td>
564
+ <td><pre><a name="line85">85</a> format.xml { render :xml =&gt; @story, :status =&gt; :created, :location =&gt; @story }</pre></td>
517
565
  </tr>
518
566
 
519
567
 
520
568
 
521
569
  <tr class="inferred">
522
- <td><pre><a name="line78">78</a> else</pre></td>
570
+ <td><pre><a name="line86">86</a> else</pre></td>
523
571
  </tr>
524
572
 
525
573
 
526
574
 
527
575
  <tr class="marked">
528
- <td><pre><a name="line79">79</a> format.html { render :action =&gt; &quot;new&quot; }</pre></td>
576
+ <td><pre><a name="line87">87</a> format.html { render :action =&gt; &quot;new&quot; }</pre></td>
529
577
  </tr>
530
578
 
531
579
 
532
580
 
533
581
  <tr class="marked">
534
- <td><pre><a name="line80">80</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
582
+ <td><pre><a name="line88">88</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
535
583
  </tr>
536
584
 
537
585
 
538
586
 
539
587
  <tr class="inferred">
540
- <td><pre><a name="line81">81</a> end</pre></td>
588
+ <td><pre><a name="line89">89</a> end</pre></td>
541
589
  </tr>
542
590
 
543
591
 
544
592
 
545
593
  <tr class="inferred">
546
- <td><pre><a name="line82">82</a> end</pre></td>
594
+ <td><pre><a name="line90">90</a> end</pre></td>
547
595
  </tr>
548
596
 
549
597
 
550
598
 
551
599
  <tr class="inferred">
552
- <td><pre><a name="line83">83</a> end</pre></td>
600
+ <td><pre><a name="line91">91</a> end</pre></td>
553
601
  </tr>
554
602
 
555
603
 
556
604
 
557
605
  <tr class="inferred">
558
- <td><pre><a name="line84">84</a> </pre></td>
606
+ <td><pre><a name="line92">92</a> </pre></td>
559
607
  </tr>
560
608
 
561
609
 
562
610
 
563
611
  <tr class="inferred">
564
- <td><pre><a name="line85">85</a> # PUT /stories/1</pre></td>
612
+ <td><pre><a name="line93">93</a> # PUT /stories/1</pre></td>
565
613
  </tr>
566
614
 
567
615
 
568
616
 
569
617
  <tr class="inferred">
570
- <td><pre><a name="line86">86</a> # PUT /stories/1.xml</pre></td>
618
+ <td><pre><a name="line94">94</a> # PUT /stories/1.xml</pre></td>
571
619
  </tr>
572
620
 
573
621
 
574
622
 
575
623
  <tr class="marked">
576
- <td><pre><a name="line87">87</a> def update</pre></td>
624
+ <td><pre><a name="line95">95</a> def update</pre></td>
577
625
  </tr>
578
626
 
579
627
 
580
628
 
581
629
  <tr class="marked">
582
- <td><pre><a name="line88">88</a> @story = Story.find_by_slug(params[:id])</pre></td>
630
+ <td><pre><a name="line96">96</a> @story = Story.find_by_slug(params[:id])</pre></td>
583
631
  </tr>
584
632
 
585
633
 
586
634
 
587
635
  <tr class="marked">
588
- <td><pre><a name="line89">89</a> respond_to do |format|</pre></td>
636
+ <td><pre><a name="line97">97</a> respond_to do |format|</pre></td>
589
637
  </tr>
590
638
 
591
639
 
592
640
 
593
641
  <tr class="marked">
594
- <td><pre><a name="line90">90</a> if @story.update_attributes(params[:story])</pre></td>
642
+ <td><pre><a name="line98">98</a> if @story.update_attributes(params[:story])</pre></td>
595
643
  </tr>
596
644
 
597
645
 
598
646
 
599
647
  <tr class="marked">
600
- <td><pre><a name="line91">91</a> flash[:notice] = 'Story was successfully updated.'</pre></td>
648
+ <td><pre><a name="line99">99</a> flash[:notice] = 'Story was successfully updated.'</pre></td>
601
649
  </tr>
602
650
 
603
651
 
604
652
 
605
653
  <tr class="marked">
606
- <td><pre><a name="line92">92</a> format.html { redirect_to(@story) }</pre></td>
654
+ <td><pre><a name="line100">100</a> format.html { redirect_to iteration_story_path(@iteration, @story) }</pre></td>
607
655
  </tr>
608
656
 
609
657
 
610
658
 
611
659
  <tr class="marked">
612
- <td><pre><a name="line93">93</a> format.xml { head :ok }</pre></td>
660
+ <td><pre><a name="line101">101</a> format.xml { head :ok }</pre></td>
613
661
  </tr>
614
662
 
615
663
 
616
664
 
617
665
  <tr class="marked">
618
- <td><pre><a name="line94">94</a> format.js { redirect_to stories_path }</pre></td>
666
+ <td><pre><a name="line102">102</a> format.js { redirect_to iteration_stories_path(@iteration) }</pre></td>
619
667
  </tr>
620
668
 
621
669
 
622
670
 
623
671
  <tr class="inferred">
624
- <td><pre><a name="line95">95</a> else</pre></td>
672
+ <td><pre><a name="line103">103</a> else</pre></td>
625
673
  </tr>
626
674
 
627
675
 
628
676
 
629
677
  <tr class="marked">
630
- <td><pre><a name="line96">96</a> format.html { render :action =&gt; &quot;edit&quot; }</pre></td>
678
+ <td><pre><a name="line104">104</a> format.html { render :action =&gt; &quot;edit&quot; }</pre></td>
631
679
  </tr>
632
680
 
633
681
 
634
682
 
635
683
  <tr class="marked">
636
- <td><pre><a name="line97">97</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
684
+ <td><pre><a name="line105">105</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
637
685
  </tr>
638
686
 
639
687
 
640
688
 
641
689
  <tr class="inferred">
642
- <td><pre><a name="line98">98</a> end</pre></td>
690
+ <td><pre><a name="line106">106</a> end</pre></td>
643
691
  </tr>
644
692
 
645
693
 
646
694
 
647
695
  <tr class="inferred">
648
- <td><pre><a name="line99">99</a> end</pre></td>
696
+ <td><pre><a name="line107">107</a> end</pre></td>
649
697
  </tr>
650
698
 
651
699
 
652
700
 
653
701
  <tr class="inferred">
654
- <td><pre><a name="line100">100</a> end</pre></td>
702
+ <td><pre><a name="line108">108</a> end</pre></td>
655
703
  </tr>
656
704
 
657
705
 
658
706
 
659
707
  <tr class="inferred">
660
- <td><pre><a name="line101">101</a> </pre></td>
708
+ <td><pre><a name="line109">109</a> </pre></td>
661
709
  </tr>
662
710
 
663
711
 
664
712
 
665
713
  <tr class="inferred">
666
- <td><pre><a name="line102">102</a> # DELETE /stories/1</pre></td>
714
+ <td><pre><a name="line110">110</a> # DELETE /stories/1</pre></td>
667
715
  </tr>
668
716
 
669
717
 
670
718
 
671
719
  <tr class="inferred">
672
- <td><pre><a name="line103">103</a> # DELETE /stories/1.xml</pre></td>
720
+ <td><pre><a name="line111">111</a> # DELETE /stories/1.xml</pre></td>
673
721
  </tr>
674
722
 
675
723
 
676
724
 
677
725
  <tr class="marked">
678
- <td><pre><a name="line104">104</a> def destroy</pre></td>
726
+ <td><pre><a name="line112">112</a> def destroy</pre></td>
679
727
  </tr>
680
728
 
681
729
 
682
730
 
683
731
  <tr class="marked">
684
- <td><pre><a name="line105">105</a> @story = Story.find_by_slug(params[:id])</pre></td>
732
+ <td><pre><a name="line113">113</a> @story = Story.find_by_slug(params[:id])</pre></td>
685
733
  </tr>
686
734
 
687
735
 
688
736
 
689
737
  <tr class="marked">
690
- <td><pre><a name="line106">106</a> @story.destroy</pre></td>
738
+ <td><pre><a name="line114">114</a> @story.destroy</pre></td>
691
739
  </tr>
692
740
 
693
741
 
694
742
 
695
743
  <tr class="inferred">
696
- <td><pre><a name="line107">107</a> </pre></td>
744
+ <td><pre><a name="line115">115</a> </pre></td>
697
745
  </tr>
698
746
 
699
747
 
700
748
 
701
749
  <tr class="marked">
702
- <td><pre><a name="line108">108</a> respond_to do |format|</pre></td>
750
+ <td><pre><a name="line116">116</a> respond_to do |format|</pre></td>
703
751
  </tr>
704
752
 
705
753
 
706
754
 
707
755
  <tr class="marked">
708
- <td><pre><a name="line109">109</a> format.html { redirect_to(stories_url) }</pre></td>
756
+ <td><pre><a name="line117">117</a> format.html { redirect_to iteration_stories_path(@iteration) }</pre></td>
709
757
  </tr>
710
758
 
711
759
 
712
760
 
713
761
  <tr class="marked">
714
- <td><pre><a name="line110">110</a> format.xml { head :ok }</pre></td>
762
+ <td><pre><a name="line118">118</a> format.xml { head :ok }</pre></td>
715
763
  </tr>
716
764
 
717
765
 
718
766
 
719
767
  <tr class="inferred">
720
- <td><pre><a name="line111">111</a> end</pre></td>
768
+ <td><pre><a name="line119">119</a> end</pre></td>
721
769
  </tr>
722
770
 
723
771
 
724
772
 
725
773
  <tr class="inferred">
726
- <td><pre><a name="line112">112</a> end</pre></td>
774
+ <td><pre><a name="line120">120</a> end</pre></td>
727
775
  </tr>
728
776
 
729
777
 
730
778
 
731
779
  <tr class="inferred">
732
- <td><pre><a name="line113">113</a> </pre></td>
780
+ <td><pre><a name="line121">121</a> </pre></td>
733
781
  </tr>
734
782
 
735
783
 
736
784
 
737
785
  <tr class="inferred">
738
- <td><pre><a name="line114">114</a> </pre></td>
786
+ <td><pre><a name="line122">122</a> </pre></td>
739
787
  </tr>
740
788
 
741
789
 
742
790
 
743
791
  <tr class="marked">
744
- <td><pre><a name="line115">115</a> private</pre></td>
792
+ <td><pre><a name="line123">123</a> private</pre></td>
745
793
  </tr>
746
794
 
747
795
 
748
796
 
749
797
  <tr class="inferred">
750
- <td><pre><a name="line116">116</a> </pre></td>
798
+ <td><pre><a name="line124">124</a> </pre></td>
751
799
  </tr>
752
800
 
753
801
 
754
802
 
755
803
  <tr class="marked">
756
- <td><pre><a name="line117">117</a> def retrieve_iterations</pre></td>
804
+ <td><pre><a name="line125">125</a> def retrieve_iterations</pre></td>
757
805
  </tr>
758
806
 
759
807
 
760
808
 
761
809
  <tr class="marked">
762
- <td><pre><a name="line118">118</a> @iterations = Iteration.all</pre></td>
810
+ <td><pre><a name="line126">126</a> @iterations = Iteration.all</pre></td>
763
811
  </tr>
764
812
 
765
813
 
766
814
 
767
815
  <tr class="inferred">
768
- <td><pre><a name="line119">119</a> end</pre></td>
816
+ <td><pre><a name="line127">127</a> end</pre></td>
817
+ </tr>
818
+
819
+
820
+
821
+ <tr class="inferred">
822
+ <td><pre><a name="line128">128</a> </pre></td>
823
+ </tr>
824
+
825
+
826
+
827
+ <tr class="marked">
828
+ <td><pre><a name="line129">129</a> def load_iteration</pre></td>
829
+ </tr>
830
+
831
+
832
+
833
+ <tr class="marked">
834
+ <td><pre><a name="line130">130</a> @iteration = Iteration.find(params[:iteration_id])</pre></td>
835
+ </tr>
836
+
837
+
838
+
839
+ <tr class="inferred">
840
+ <td><pre><a name="line131">131</a> end </pre></td>
769
841
  </tr>
770
842
 
771
843
 
772
844
 
773
845
  <tr class="inferred">
774
- <td><pre><a name="line120">120</a> </pre></td>
846
+ <td><pre><a name="line132">132</a> end</pre></td>
775
847
  </tr>
776
848
 
777
849
 
778
850
 
779
851
  <tr class="inferred">
780
- <td><pre><a name="line121">121</a> end</pre></td>
852
+ <td><pre><a name="line133">133</a> </pre></td>
781
853
  </tr>
782
854
 
783
855
 
784
856
 
785
857
  <tr class="inferred">
786
- <td><pre><a name="line122">122</a> </pre></td>
858
+ <td><pre><a name="line134">134</a> </pre></td>
787
859
  </tr>
788
860
 
789
861
  </tbody>
790
862
  </table>
791
863
 
792
- <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>
864
+ <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>
793
865
 
794
866
  </body>
795
867
  </html>