branston 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/branston/app/controllers/scenarios_controller.rb +6 -5
- data/lib/branston/app/controllers/stories_controller.rb +101 -89
- data/lib/branston/app/models/story.rb +30 -1
- data/lib/branston/app/models/user.rb +4 -0
- data/lib/branston/app/views/iterations/index.html.erb +1 -1
- data/lib/branston/app/views/layouts/_header.html.erb +1 -2
- data/lib/branston/app/views/scenarios/_scenario.html.erb +6 -3
- data/lib/branston/app/views/scenarios/_scenarios.html.erb +4 -2
- data/lib/branston/app/views/stories/_form.html.erb +15 -4
- data/lib/branston/app/views/stories/_story.html.erb +26 -6
- data/lib/branston/app/views/stories/edit.html.erb +3 -3
- data/lib/branston/app/views/stories/index.html.erb +22 -3
- data/lib/branston/app/views/stories/new.html.erb +2 -2
- data/lib/branston/app/views/stories/show.html.erb +3 -3
- data/lib/branston/config/routes.rb +7 -4
- data/lib/branston/coverage/app-controllers-application_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-releases_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +18 -12
- data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-stories_controller_rb.html +193 -121
- data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +1 -1
- data/lib/branston/coverage/app-controllers-users_controller_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-application_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-releases_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-stories_helper_rb.html +1 -1
- data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +1 -1
- data/lib/branston/coverage/app-models-iteration_rb.html +1 -1
- data/lib/branston/coverage/app-models-outcome_rb.html +1 -1
- data/lib/branston/coverage/app-models-participation_rb.html +1 -1
- data/lib/branston/coverage/app-models-precondition_rb.html +1 -1
- data/lib/branston/coverage/app-models-release_rb.html +1 -1
- data/lib/branston/coverage/app-models-scenario_rb.html +1 -1
- data/lib/branston/coverage/app-models-story_rb.html +192 -18
- data/lib/branston/coverage/app-models-user_rb.html +33 -9
- data/lib/branston/coverage/app-models-user_role_rb.html +1 -1
- data/lib/branston/coverage/index.html +13 -13
- data/lib/branston/coverage/lib-client_rb.html +1 -1
- data/lib/branston/coverage/lib-faker_extras_rb.html +1 -1
- data/lib/branston/coverage/lib-story_generator_rb.html +1 -1
- data/lib/branston/db/development.sqlite3 +0 -0
- data/lib/branston/db/migrate/20091223100903_add_status_to_story.rb +11 -0
- data/lib/branston/db/pristine.sqlite3 +0 -0
- data/lib/branston/db/schema.rb +5 -3
- data/lib/branston/db/test.sqlite3 +0 -0
- data/lib/branston/lib/branston.rb +4 -2
- data/lib/branston/log/development.log +4970 -0
- data/lib/branston/log/test.log +88225 -0
- data/lib/branston/test/blueprints.rb +10 -7
- data/lib/branston/test/functional/scenarios_controller_test.rb +22 -15
- data/lib/branston/test/functional/stories_controller_test.rb +51 -30
- data/lib/branston/test/unit/story_test.rb +47 -7
- data/lib/branston/test/unit/user_test.rb +4 -0
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +3 -2
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +2041 -1307
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +7922 -7922
- data/lib/branston/vendor/plugins/state_machine/CHANGELOG.rdoc +298 -0
- data/lib/branston/vendor/plugins/state_machine/LICENSE +20 -0
- data/lib/branston/vendor/plugins/state_machine/README.rdoc +466 -0
- data/lib/branston/vendor/plugins/state_machine/Rakefile +98 -0
- data/lib/branston/vendor/plugins/state_machine/examples/AutoShop_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/Car_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/TrafficLight_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/Vehicle_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/auto_shop.rb +11 -0
- data/lib/branston/vendor/plugins/state_machine/examples/car.rb +19 -0
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/controller.rb +51 -0
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/model.rb +28 -0
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_edit.html.erb +24 -0
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_index.html.erb +23 -0
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_new.html.erb +13 -0
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_show.html.erb +17 -0
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/controller.rb +43 -0
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/migration.rb +11 -0
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/model.rb +23 -0
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_edit.html.erb +25 -0
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_index.html.erb +23 -0
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_new.html.erb +14 -0
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_show.html.erb +17 -0
- data/lib/branston/vendor/plugins/state_machine/examples/traffic_light.rb +7 -0
- data/lib/branston/vendor/plugins/state_machine/examples/vehicle.rb +31 -0
- data/lib/branston/vendor/plugins/state_machine/init.rb +1 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/assertions.rb +36 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/callback.rb +189 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/condition_proxy.rb +94 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/eval_helpers.rb +67 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/event.rb +252 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/event_collection.rb +122 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/extensions.rb +149 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/guard.rb +230 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record/locale.rb +11 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record/observer.rb +41 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record.rb +492 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/data_mapper/observer.rb +139 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/data_mapper.rb +351 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/sequel.rb +322 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations.rb +68 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/machine.rb +1467 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/machine_collection.rb +155 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/matcher.rb +123 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/matcher_helpers.rb +54 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/node_collection.rb +152 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/state.rb +249 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/state_collection.rb +112 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/transition.rb +394 -0
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine.rb +388 -0
- data/lib/branston/vendor/plugins/state_machine/state_machine.gemspec +30 -0
- data/lib/branston/vendor/plugins/state_machine/tasks/state_machine.rake +1 -0
- data/lib/branston/vendor/plugins/state_machine/tasks/state_machine.rb +30 -0
- data/lib/branston/vendor/plugins/state_machine/test/classes/switch.rb +11 -0
- data/lib/branston/vendor/plugins/state_machine/test/functional/state_machine_test.rb +941 -0
- data/lib/branston/vendor/plugins/state_machine/test/test_helper.rb +4 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/assertions_test.rb +40 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/callback_test.rb +455 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/condition_proxy_test.rb +328 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/eval_helpers_test.rb +120 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/event_collection_test.rb +326 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/event_test.rb +743 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/guard_test.rb +908 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/active_record_test.rb +1367 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/data_mapper_test.rb +962 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/sequel_test.rb +859 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations_test.rb +42 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/invalid_event_test.rb +7 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/invalid_transition_test.rb +7 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/machine_collection_test.rb +938 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/machine_test.rb +2004 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/matcher_helpers_test.rb +37 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/matcher_test.rb +155 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/node_collection_test.rb +207 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/state_collection_test.rb +280 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/state_machine_test.rb +31 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/state_test.rb +795 -0
- data/lib/branston/vendor/plugins/state_machine/test/unit/transition_test.rb +1212 -0
- 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>
|
32
|
-
<td class='right_align'><tt>
|
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, :
|
84
|
+
<td><pre><a name="line5">5</a> before_filter :retrieve_iterations, :except => [: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 => [:generate_feature, :show]</pre></td>
|
85
91
|
</tr>
|
86
92
|
|
87
93
|
|
88
94
|
|
89
95
|
<tr class="inferred">
|
90
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
144
|
+
<td><pre><a name="line15">15</a> @story = Story.find(:first, :include => :scenarios, </pre></td>
|
139
145
|
</tr>
|
140
146
|
|
141
147
|
|
142
148
|
|
143
149
|
<tr class="inferred">
|
144
|
-
<td><pre><a name="
|
150
|
+
<td><pre><a name="line16">16</a> :conditions => ['slug LIKE ?', "%#{id}%"] )</pre></td>
|
145
151
|
</tr>
|
146
152
|
|
147
153
|
|
148
154
|
|
149
155
|
<tr class="inferred">
|
150
|
-
<td><pre><a name="
|
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="
|
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="
|
168
|
+
<td><pre><a name="line19">19</a> render :text => 'done'</pre></td>
|
163
169
|
</tr>
|
164
170
|
|
165
171
|
|
166
172
|
|
167
173
|
<tr class="inferred">
|
168
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
240
|
+
<td><pre><a name="line31">31</a> format.xml { render :xml => @stories }</pre></td>
|
229
241
|
</tr>
|
230
242
|
|
231
243
|
|
232
244
|
|
233
245
|
<tr class="inferred">
|
234
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
330
|
+
<td><pre><a name="line46">46</a> render :xml => (@story.to_xml :include => { :scenarios => {</pre></td>
|
331
|
+
</tr>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
<tr class="inferred">
|
336
|
+
<td><pre><a name="line47">47</a> :include => [:preconditions, :outcomes] } } ) }</pre></td>
|
313
337
|
</tr>
|
314
338
|
|
315
339
|
|
316
340
|
|
317
341
|
<tr class="marked">
|
318
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
378
|
+
<td><pre><a name="line54">54</a> format.all { render :nothing => true, :status => 404 }</pre></td>
|
337
379
|
</tr>
|
338
380
|
|
339
381
|
|
340
382
|
|
341
383
|
<tr class="inferred">
|
342
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
426
|
+
<td><pre><a name="line62">62</a> @story = Story.new(:iteration => @iteration)</pre></td>
|
385
427
|
</tr>
|
386
428
|
|
387
429
|
|
388
430
|
|
389
431
|
<tr class="inferred">
|
390
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
450
|
+
<td><pre><a name="line66">66</a> format.xml { render :xml => @story }</pre></td>
|
409
451
|
</tr>
|
410
452
|
|
411
453
|
|
412
454
|
|
413
455
|
<tr class="inferred">
|
414
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
564
|
+
<td><pre><a name="line85">85</a> format.xml { render :xml => @story, :status => :created, :location => @story }</pre></td>
|
517
565
|
</tr>
|
518
566
|
|
519
567
|
|
520
568
|
|
521
569
|
<tr class="inferred">
|
522
|
-
<td><pre><a name="
|
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="
|
576
|
+
<td><pre><a name="line87">87</a> format.html { render :action => "new" }</pre></td>
|
529
577
|
</tr>
|
530
578
|
|
531
579
|
|
532
580
|
|
533
581
|
<tr class="marked">
|
534
|
-
<td><pre><a name="
|
582
|
+
<td><pre><a name="line88">88</a> format.xml { render :xml => @story.errors, :status => :unprocessable_entity }</pre></td>
|
535
583
|
</tr>
|
536
584
|
|
537
585
|
|
538
586
|
|
539
587
|
<tr class="inferred">
|
540
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
678
|
+
<td><pre><a name="line104">104</a> format.html { render :action => "edit" }</pre></td>
|
631
679
|
</tr>
|
632
680
|
|
633
681
|
|
634
682
|
|
635
683
|
<tr class="marked">
|
636
|
-
<td><pre><a name="
|
684
|
+
<td><pre><a name="line105">105</a> format.xml { render :xml => @story.errors, :status => :unprocessable_entity }</pre></td>
|
637
685
|
</tr>
|
638
686
|
|
639
687
|
|
640
688
|
|
641
689
|
<tr class="inferred">
|
642
|
-
<td><pre><a name="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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
|
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>
|