branston 0.3.2 → 0.3.3

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