branston 0.5.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/lib/branston/app/controllers/stories_controller.rb +7 -1
  2. data/lib/branston/app/helpers/stories_helper.rb +7 -0
  3. data/lib/branston/app/views/stories/index.html.erb +18 -5
  4. data/lib/branston/coverage/app-controllers-application_controller_rb.html +1 -1
  5. data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +1 -1
  6. data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +1 -1
  7. data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +1 -1
  8. data/lib/branston/coverage/app-controllers-releases_controller_rb.html +1 -1
  9. data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +1 -1
  10. data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +1 -1
  11. data/lib/branston/coverage/app-controllers-stories_controller_rb.html +171 -135
  12. data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +1 -1
  13. data/lib/branston/coverage/app-controllers-users_controller_rb.html +1 -1
  14. data/lib/branston/coverage/app-helpers-application_helper_rb.html +1 -1
  15. data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +1 -1
  16. data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +1 -1
  17. data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +1 -1
  18. data/lib/branston/coverage/app-helpers-releases_helper_rb.html +1 -1
  19. data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +1 -1
  20. data/lib/branston/coverage/app-helpers-stories_helper_rb.html +46 -4
  21. data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +1 -1
  22. data/lib/branston/coverage/app-models-iteration_rb.html +1 -1
  23. data/lib/branston/coverage/app-models-outcome_rb.html +1 -1
  24. data/lib/branston/coverage/app-models-participation_rb.html +1 -1
  25. data/lib/branston/coverage/app-models-precondition_rb.html +1 -1
  26. data/lib/branston/coverage/app-models-release_rb.html +1 -1
  27. data/lib/branston/coverage/app-models-scenario_rb.html +1 -1
  28. data/lib/branston/coverage/app-models-story_rb.html +1 -1
  29. data/lib/branston/coverage/app-models-user_rb.html +1 -1
  30. data/lib/branston/coverage/app-models-user_role_rb.html +1 -1
  31. data/lib/branston/coverage/index.html +13 -13
  32. data/lib/branston/coverage/lib-client_rb.html +1 -1
  33. data/lib/branston/coverage/lib-faker_extras_rb.html +1 -1
  34. data/lib/branston/coverage/lib-story_generator_rb.html +1 -1
  35. data/lib/branston/db/development.sqlite3 +0 -0
  36. data/lib/branston/log/development.log +2797 -0
  37. data/lib/branston/log/test.log +18862 -0
  38. data/lib/branston/test/blueprints.rb +5 -1
  39. data/lib/branston/test/functional/stories_controller_test.rb +14 -6
  40. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +4 -3
  41. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +1893 -795
  42. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +6612 -6612
  43. metadata +2 -2
@@ -38,7 +38,13 @@ class StoriesController < ApplicationController
38
38
  @backlog_stories = Story.for_iteration(@iteration.id).unassigned
39
39
  @quality_assurance_stories = Story.for_iteration(@iteration.id).in_quality_assurance
40
40
  @completed_stories = Story.for_iteration(@iteration.id).completed
41
-
41
+ @total_assigned_points = 0
42
+ Story.for_iteration(@iteration.id).map { |s|
43
+ @total_assigned_points += s.points
44
+ }
45
+
46
+ @assignment_difference = @total_assigned_points - @iteration.velocity
47
+
42
48
  respond_to do |format|
43
49
  format.html # index.html.erb
44
50
  format.xml { render :xml => @stories }
@@ -1,2 +1,9 @@
1
1
  module StoriesHelper
2
+
3
+ def points_label(stories)
4
+ points = 0
5
+ stories.map { |s| points += s.points }
6
+ "(#{points} points)"
7
+ end
8
+
2
9
  end
@@ -1,5 +1,18 @@
1
1
  <div class="index-head">
2
- <h2>Iteration #<%=@iteration.name%> Stories</h2>
2
+ <h2>Iteration #<%=@iteration.name%> Stories,
3
+ <%=@total_assigned_points%>/<%=@iteration.velocity%> points assigned
4
+ (<%=((@total_assigned_points.to_f/@iteration.velocity.to_f)*100).to_i%>%)
5
+ </h2>
6
+ <p>
7
+ <% case (@assignment_difference <=> 0)
8
+ when -1 -%>
9
+ Undersubscribed by <%= 0 - @assignment_difference%> points
10
+ <% when 1 -%>
11
+ Oversubscribed by <%=@assignment_difference %> points
12
+ <% when 0 -%>
13
+ Spot on!
14
+ <% end -%>
15
+ </p>
3
16
  <%= link_to 'New story', new_iteration_story_path(@iteration), :class => "add" %>
4
17
  </div>
5
18
 
@@ -35,14 +48,14 @@ document.observe("dom:loaded", function() {
35
48
  <% end %>
36
49
 
37
50
  <div id="current-wrapper">
38
- <h3>Current Stories</h3>
51
+ <h3>Current Stories <%=points_label(@current_stories)%></h3>
39
52
  <div id="current_stories" class="accordion">
40
53
  <% @current_stories.each do |story| %>
41
54
  <%= render :partial => "story", :locals => { :story => story } %>
42
55
  <% end %>
43
56
  </div>
44
57
 
45
- <h3>Quality Assurance Stories</h3>
58
+ <h3>Quality Assurance Stories <%=points_label(@quality_assurance_stories)%></h3>
46
59
  <div id="quality_assurance_stories" class="accordion">
47
60
  <% @quality_assurance_stories.each do |story| %>
48
61
  <%= render :partial => "story", :locals => { :story => story } %>
@@ -51,7 +64,7 @@ document.observe("dom:loaded", function() {
51
64
  </div>
52
65
 
53
66
  <div id="backlog-wrapper">
54
- <h3>Story Backlog</h3>
67
+ <h3>Story Backlog <%=points_label(@backlog_stories)%></h3>
55
68
  <div id="backlog_stories" class="accordion">
56
69
  <% if @backlog_stories.empty? %>
57
70
  <%=link_to "Write some more!", new_iteration_story_path(@iteration) %>
@@ -69,7 +82,7 @@ document.observe("dom:loaded", function() {
69
82
  </div>
70
83
 
71
84
  <div id="current-wrapper">
72
- <h3>Completed Stories</h3>
85
+ <h3>Completed Stories <%=points_label(@completed_stories)%></h3>
73
86
  <div id="completed_stories" class="accordion">
74
87
  <% @completed_stories.each do |story| %>
75
88
  <%= render :partial => "story", :locals => { :story => story } %>
@@ -225,7 +225,7 @@
225
225
  </tbody>
226
226
  </table>
227
227
 
228
- <p>Generated on Wed Mar 10 10:25:25 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
228
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
229
229
 
230
230
  </body>
231
231
  </html>
@@ -795,7 +795,7 @@
795
795
  </tbody>
796
796
  </table>
797
797
 
798
- <p>Generated on Wed Mar 10 10:25:25 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
798
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
799
799
 
800
800
  </body>
801
801
  </html>
@@ -753,7 +753,7 @@
753
753
  </tbody>
754
754
  </table>
755
755
 
756
- <p>Generated on Wed Mar 10 10:25:24 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
756
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
757
757
 
758
758
  </body>
759
759
  </html>
@@ -777,7 +777,7 @@
777
777
  </tbody>
778
778
  </table>
779
779
 
780
- <p>Generated on Wed Mar 10 10:25:24 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
780
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
781
781
 
782
782
  </body>
783
783
  </html>
@@ -699,7 +699,7 @@
699
699
  </tbody>
700
700
  </table>
701
701
 
702
- <p>Generated on Wed Mar 10 10:25:25 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
702
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
703
703
 
704
704
  </body>
705
705
  </html>
@@ -771,7 +771,7 @@
771
771
  </tbody>
772
772
  </table>
773
773
 
774
- <p>Generated on Wed Mar 10 10:25:24 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
774
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
775
775
 
776
776
  </body>
777
777
  </html>
@@ -405,7 +405,7 @@
405
405
  </tbody>
406
406
  </table>
407
407
 
408
- <p>Generated on Wed Mar 10 10:25:25 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
408
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
409
409
 
410
410
  </body>
411
411
  </html>
@@ -28,14 +28,14 @@
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>168</tt></td>
32
- <td class='right_align'><tt>115</tt></td>
33
- <td class="left_align"><div class="percent_graph_legend"><tt class=''>90.48%</tt></div>
31
+ <td class='right_align'><tt>174</tt></td>
32
+ <td class='right_align'><tt>120</tt></td>
33
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>90.80%</tt></div>
34
34
  <div class="percent_graph">
35
- <div class="covered" style="width:90px"></div>
36
- <div class="uncovered" style="width:10px"></div>
35
+ <div class="covered" style="width:91px"></div>
36
+ <div class="uncovered" style="width:9px"></div>
37
37
  </div></td>
38
- <td class="left_align"><div class="percent_graph_legend"><tt class=''>88.70%</tt></div>
38
+ <td class="left_align"><div class="percent_graph_legend"><tt class=''>89.17%</tt></div>
39
39
  <div class="percent_graph">
40
40
  <div class="covered" style="width:89px"></div>
41
41
  <div class="uncovered" style="width:11px"></div>
@@ -296,776 +296,812 @@
296
296
 
297
297
 
298
298
 
299
+ <tr class="marked">
300
+ <td><pre><a name="line41">41</a> @total_assigned_points = 0</pre></td>
301
+ </tr>
302
+
303
+
304
+
305
+ <tr class="marked">
306
+ <td><pre><a name="line42">42</a> Story.for_iteration(@iteration.id).map { |s|</pre></td>
307
+ </tr>
308
+
309
+
310
+
311
+ <tr class="marked">
312
+ <td><pre><a name="line43">43</a> @total_assigned_points += s.points</pre></td>
313
+ </tr>
314
+
315
+
316
+
317
+ <tr class="inferred">
318
+ <td><pre><a name="line44">44</a> }</pre></td>
319
+ </tr>
320
+
321
+
322
+
299
323
  <tr class="inferred">
300
- <td><pre><a name="line41">41</a> </pre></td>
324
+ <td><pre><a name="line45">45</a> </pre></td>
301
325
  </tr>
302
326
 
303
327
 
304
328
 
305
329
  <tr class="marked">
306
- <td><pre><a name="line42">42</a> respond_to do |format|</pre></td>
330
+ <td><pre><a name="line46">46</a> @assignment_difference = @total_assigned_points - @iteration.velocity</pre></td>
331
+ </tr>
332
+
333
+
334
+
335
+ <tr class="inferred">
336
+ <td><pre><a name="line47">47</a> </pre></td>
307
337
  </tr>
308
338
 
309
339
 
310
340
 
311
341
  <tr class="marked">
312
- <td><pre><a name="line43">43</a> format.html # index.html.erb</pre></td>
342
+ <td><pre><a name="line48">48</a> respond_to do |format|</pre></td>
313
343
  </tr>
314
344
 
315
345
 
316
346
 
317
347
  <tr class="marked">
318
- <td><pre><a name="line44">44</a> format.xml { render :xml =&gt; @stories }</pre></td>
348
+ <td><pre><a name="line49">49</a> format.html # index.html.erb</pre></td>
349
+ </tr>
350
+
351
+
352
+
353
+ <tr class="marked">
354
+ <td><pre><a name="line50">50</a> format.xml { render :xml =&gt; @stories }</pre></td>
319
355
  </tr>
320
356
 
321
357
 
322
358
 
323
359
  <tr class="inferred">
324
- <td><pre><a name="line45">45</a> end</pre></td>
360
+ <td><pre><a name="line51">51</a> end</pre></td>
325
361
  </tr>
326
362
 
327
363
 
328
364
 
329
365
  <tr class="inferred">
330
- <td><pre><a name="line46">46</a> end</pre></td>
366
+ <td><pre><a name="line52">52</a> end</pre></td>
331
367
  </tr>
332
368
 
333
369
 
334
370
 
335
371
  <tr class="inferred">
336
- <td><pre><a name="line47">47</a> </pre></td>
372
+ <td><pre><a name="line53">53</a> </pre></td>
337
373
  </tr>
338
374
 
339
375
 
340
376
 
341
377
  <tr class="inferred">
342
- <td><pre><a name="line48">48</a> # GET /stories/1</pre></td>
378
+ <td><pre><a name="line54">54</a> # GET /stories/1</pre></td>
343
379
  </tr>
344
380
 
345
381
 
346
382
 
347
383
  <tr class="inferred">
348
- <td><pre><a name="line49">49</a> # GET /stories/1.xml</pre></td>
384
+ <td><pre><a name="line55">55</a> # GET /stories/1.xml</pre></td>
349
385
  </tr>
350
386
 
351
387
 
352
388
 
353
389
  <tr class="marked">
354
- <td><pre><a name="line50">50</a> def show</pre></td>
390
+ <td><pre><a name="line56">56</a> def show</pre></td>
355
391
  </tr>
356
392
 
357
393
 
358
394
 
359
395
  <tr class="marked">
360
- <td><pre><a name="line51">51</a> @story = Story.find_by_slug(params[:id])</pre></td>
396
+ <td><pre><a name="line57">57</a> @story = Story.find_by_slug(params[:id])</pre></td>
361
397
  </tr>
362
398
 
363
399
 
364
400
 
365
401
  <tr class="marked">
366
- <td><pre><a name="line52">52</a> @iteration = @story.iteration unless @story.nil?</pre></td>
402
+ <td><pre><a name="line58">58</a> @iteration = @story.iteration unless @story.nil?</pre></td>
367
403
  </tr>
368
404
 
369
405
 
370
406
 
371
407
  <tr class="inferred">
372
- <td><pre><a name="line53">53</a> </pre></td>
408
+ <td><pre><a name="line59">59</a> </pre></td>
373
409
  </tr>
374
410
 
375
411
 
376
412
 
377
413
  <tr class="marked">
378
- <td><pre><a name="line54">54</a> respond_to do |format|</pre></td>
414
+ <td><pre><a name="line60">60</a> respond_to do |format|</pre></td>
379
415
  </tr>
380
416
 
381
417
 
382
418
 
383
419
  <tr class="marked">
384
- <td><pre><a name="line55">55</a> if @story</pre></td>
420
+ <td><pre><a name="line61">61</a> if @story</pre></td>
385
421
  </tr>
386
422
 
387
423
 
388
424
 
389
425
  <tr class="marked">
390
- <td><pre><a name="line56">56</a> format.html</pre></td>
426
+ <td><pre><a name="line62">62</a> format.html</pre></td>
391
427
  </tr>
392
428
 
393
429
 
394
430
 
395
431
  <tr class="marked">
396
- <td><pre><a name="line57">57</a> format.xml {</pre></td>
432
+ <td><pre><a name="line63">63</a> format.xml {</pre></td>
397
433
  </tr>
398
434
 
399
435
 
400
436
 
401
437
  <tr class="inferred">
402
- <td><pre><a name="line58">58</a> render :xml =&gt; (@story.to_xml :include =&gt; { </pre></td>
438
+ <td><pre><a name="line64">64</a> render :xml =&gt; (@story.to_xml :include =&gt; { </pre></td>
403
439
  </tr>
404
440
 
405
441
 
406
442
 
407
443
  <tr class="inferred">
408
- <td><pre><a name="line59">59</a> :scenarios =&gt; { :include =&gt; [:preconditions, :outcomes] }</pre></td>
444
+ <td><pre><a name="line65">65</a> :scenarios =&gt; { :include =&gt; [:preconditions, :outcomes] }</pre></td>
409
445
  </tr>
410
446
 
411
447
 
412
448
 
413
449
  <tr class="inferred">
414
- <td><pre><a name="line60">60</a> })</pre></td>
450
+ <td><pre><a name="line66">66</a> })</pre></td>
415
451
  </tr>
416
452
 
417
453
 
418
454
 
419
455
  <tr class="inferred">
420
- <td><pre><a name="line61">61</a> }</pre></td>
456
+ <td><pre><a name="line67">67</a> }</pre></td>
421
457
  </tr>
422
458
 
423
459
 
424
460
 
425
461
  <tr class="marked">
426
- <td><pre><a name="line62">62</a> format.js { @active = true }</pre></td>
462
+ <td><pre><a name="line68">68</a> format.js { @active = true }</pre></td>
427
463
  </tr>
428
464
 
429
465
 
430
466
 
431
467
  <tr class="inferred">
432
- <td><pre><a name="line63">63</a> else</pre></td>
468
+ <td><pre><a name="line69">69</a> else</pre></td>
433
469
  </tr>
434
470
 
435
471
 
436
472
 
437
473
  <tr class="marked">
438
- <td><pre><a name="line64">64</a> format.html {</pre></td>
474
+ <td><pre><a name="line70">70</a> format.html {</pre></td>
439
475
  </tr>
440
476
 
441
477
 
442
478
 
443
479
  <tr class="marked">
444
- <td><pre><a name="line65">65</a> render_optional_error_file 404</pre></td>
480
+ <td><pre><a name="line71">71</a> render_optional_error_file 404</pre></td>
445
481
  </tr>
446
482
 
447
483
 
448
484
 
449
485
  <tr class="inferred">
450
- <td><pre><a name="line66">66</a> }</pre></td>
486
+ <td><pre><a name="line72">72</a> }</pre></td>
451
487
  </tr>
452
488
 
453
489
 
454
490
 
455
491
  <tr class="marked">
456
- <td><pre><a name="line67">67</a> format.all { render :nothing =&gt; true, :status =&gt; 404 }</pre></td>
492
+ <td><pre><a name="line73">73</a> format.all { render :nothing =&gt; true, :status =&gt; 404 }</pre></td>
457
493
  </tr>
458
494
 
459
495
 
460
496
 
461
497
  <tr class="inferred">
462
- <td><pre><a name="line68">68</a> end</pre></td>
498
+ <td><pre><a name="line74">74</a> end</pre></td>
463
499
  </tr>
464
500
 
465
501
 
466
502
 
467
503
  <tr class="inferred">
468
- <td><pre><a name="line69">69</a> end</pre></td>
504
+ <td><pre><a name="line75">75</a> end</pre></td>
469
505
  </tr>
470
506
 
471
507
 
472
508
 
473
509
  <tr class="inferred">
474
- <td><pre><a name="line70">70</a> end</pre></td>
510
+ <td><pre><a name="line76">76</a> end</pre></td>
475
511
  </tr>
476
512
 
477
513
 
478
514
 
479
515
  <tr class="inferred">
480
- <td><pre><a name="line71">71</a> </pre></td>
516
+ <td><pre><a name="line77">77</a> </pre></td>
481
517
  </tr>
482
518
 
483
519
 
484
520
 
485
521
  <tr class="inferred">
486
- <td><pre><a name="line72">72</a> # GET /stories/new</pre></td>
522
+ <td><pre><a name="line78">78</a> # GET /stories/new</pre></td>
487
523
  </tr>
488
524
 
489
525
 
490
526
 
491
527
  <tr class="inferred">
492
- <td><pre><a name="line73">73</a> # GET /stories/new.xml</pre></td>
528
+ <td><pre><a name="line79">79</a> # GET /stories/new.xml</pre></td>
493
529
  </tr>
494
530
 
495
531
 
496
532
 
497
533
  <tr class="marked">
498
- <td><pre><a name="line74">74</a> def new</pre></td>
534
+ <td><pre><a name="line80">80</a> def new</pre></td>
499
535
  </tr>
500
536
 
501
537
 
502
538
 
503
539
  <tr class="marked">
504
- <td><pre><a name="line75">75</a> @story = Story.new(:iteration =&gt; @iteration)</pre></td>
540
+ <td><pre><a name="line81">81</a> @story = Story.new(:iteration =&gt; @iteration)</pre></td>
505
541
  </tr>
506
542
 
507
543
 
508
544
 
509
545
  <tr class="inferred">
510
- <td><pre><a name="line76">76</a> </pre></td>
546
+ <td><pre><a name="line82">82</a> </pre></td>
511
547
  </tr>
512
548
 
513
549
 
514
550
 
515
551
  <tr class="marked">
516
- <td><pre><a name="line77">77</a> respond_to do |format|</pre></td>
552
+ <td><pre><a name="line83">83</a> respond_to do |format|</pre></td>
517
553
  </tr>
518
554
 
519
555
 
520
556
 
521
557
  <tr class="marked">
522
- <td><pre><a name="line78">78</a> format.html # new.html.erb</pre></td>
558
+ <td><pre><a name="line84">84</a> format.html # new.html.erb</pre></td>
523
559
  </tr>
524
560
 
525
561
 
526
562
 
527
563
  <tr class="marked">
528
- <td><pre><a name="line79">79</a> format.xml { render :xml =&gt; @story }</pre></td>
564
+ <td><pre><a name="line85">85</a> format.xml { render :xml =&gt; @story }</pre></td>
529
565
  </tr>
530
566
 
531
567
 
532
568
 
533
569
  <tr class="inferred">
534
- <td><pre><a name="line80">80</a> end</pre></td>
570
+ <td><pre><a name="line86">86</a> end</pre></td>
535
571
  </tr>
536
572
 
537
573
 
538
574
 
539
575
  <tr class="inferred">
540
- <td><pre><a name="line81">81</a> end</pre></td>
576
+ <td><pre><a name="line87">87</a> end</pre></td>
541
577
  </tr>
542
578
 
543
579
 
544
580
 
545
581
  <tr class="inferred">
546
- <td><pre><a name="line82">82</a> </pre></td>
582
+ <td><pre><a name="line88">88</a> </pre></td>
547
583
  </tr>
548
584
 
549
585
 
550
586
 
551
587
  <tr class="inferred">
552
- <td><pre><a name="line83">83</a> # GET /stories/1/edit</pre></td>
588
+ <td><pre><a name="line89">89</a> # GET /stories/1/edit</pre></td>
553
589
  </tr>
554
590
 
555
591
 
556
592
 
557
593
  <tr class="marked">
558
- <td><pre><a name="line84">84</a> def edit</pre></td>
594
+ <td><pre><a name="line90">90</a> def edit</pre></td>
559
595
  </tr>
560
596
 
561
597
 
562
598
 
563
599
  <tr class="marked">
564
- <td><pre><a name="line85">85</a> @story = Story.find_by_slug(params[:id])</pre></td>
600
+ <td><pre><a name="line91">91</a> @story = Story.find_by_slug(params[:id])</pre></td>
565
601
  </tr>
566
602
 
567
603
 
568
604
 
569
605
  <tr class="inferred">
570
- <td><pre><a name="line86">86</a> end</pre></td>
606
+ <td><pre><a name="line92">92</a> end</pre></td>
571
607
  </tr>
572
608
 
573
609
 
574
610
 
575
611
  <tr class="inferred">
576
- <td><pre><a name="line87">87</a> </pre></td>
612
+ <td><pre><a name="line93">93</a> </pre></td>
577
613
  </tr>
578
614
 
579
615
 
580
616
 
581
617
  <tr class="inferred">
582
- <td><pre><a name="line88">88</a> # POST /stories</pre></td>
618
+ <td><pre><a name="line94">94</a> # POST /stories</pre></td>
583
619
  </tr>
584
620
 
585
621
 
586
622
 
587
623
  <tr class="inferred">
588
- <td><pre><a name="line89">89</a> # POST /stories.xml</pre></td>
624
+ <td><pre><a name="line95">95</a> # POST /stories.xml</pre></td>
589
625
  </tr>
590
626
 
591
627
 
592
628
 
593
629
  <tr class="marked">
594
- <td><pre><a name="line90">90</a> def create</pre></td>
630
+ <td><pre><a name="line96">96</a> def create</pre></td>
595
631
  </tr>
596
632
 
597
633
 
598
634
 
599
635
  <tr class="marked">
600
- <td><pre><a name="line91">91</a> @story = Story.new(params[:story])</pre></td>
636
+ <td><pre><a name="line97">97</a> @story = Story.new(params[:story])</pre></td>
601
637
  </tr>
602
638
 
603
639
 
604
640
 
605
641
  <tr class="marked">
606
- <td><pre><a name="line92">92</a> @story.author = current_user</pre></td>
642
+ <td><pre><a name="line98">98</a> @story.author = current_user</pre></td>
607
643
  </tr>
608
644
 
609
645
 
610
646
 
611
647
  <tr class="marked">
612
- <td><pre><a name="line93">93</a> @story.iteration = @iteration</pre></td>
648
+ <td><pre><a name="line99">99</a> @story.iteration = @iteration</pre></td>
613
649
  </tr>
614
650
 
615
651
 
616
652
 
617
653
  <tr class="inferred">
618
- <td><pre><a name="line94">94</a> </pre></td>
654
+ <td><pre><a name="line100">100</a> </pre></td>
619
655
  </tr>
620
656
 
621
657
 
622
658
 
623
659
  <tr class="marked">
624
- <td><pre><a name="line95">95</a> respond_to do |format|</pre></td>
660
+ <td><pre><a name="line101">101</a> respond_to do |format|</pre></td>
625
661
  </tr>
626
662
 
627
663
 
628
664
 
629
665
  <tr class="marked">
630
- <td><pre><a name="line96">96</a> if @story.save</pre></td>
666
+ <td><pre><a name="line102">102</a> if @story.save</pre></td>
631
667
  </tr>
632
668
 
633
669
 
634
670
 
635
671
  <tr class="marked">
636
- <td><pre><a name="line97">97</a> flash[:notice] = 'Story was successfully created.'</pre></td>
672
+ <td><pre><a name="line103">103</a> flash[:notice] = 'Story was successfully created.'</pre></td>
637
673
  </tr>
638
674
 
639
675
 
640
676
 
641
677
  <tr class="marked">
642
- <td><pre><a name="line98">98</a> format.html { redirect_to iteration_stories_path(@iteration) }</pre></td>
678
+ <td><pre><a name="line104">104</a> format.html { redirect_to iteration_stories_path(@iteration) }</pre></td>
643
679
  </tr>
644
680
 
645
681
 
646
682
 
647
683
  <tr class="marked">
648
- <td><pre><a name="line99">99</a> format.xml { render :xml =&gt; @story, :status =&gt; :created, :location =&gt; @story }</pre></td>
684
+ <td><pre><a name="line105">105</a> format.xml { render :xml =&gt; @story, :status =&gt; :created, :location =&gt; @story }</pre></td>
649
685
  </tr>
650
686
 
651
687
 
652
688
 
653
689
  <tr class="inferred">
654
- <td><pre><a name="line100">100</a> else</pre></td>
690
+ <td><pre><a name="line106">106</a> else</pre></td>
655
691
  </tr>
656
692
 
657
693
 
658
694
 
659
695
  <tr class="marked">
660
- <td><pre><a name="line101">101</a> format.html { render :action =&gt; &quot;new&quot; }</pre></td>
696
+ <td><pre><a name="line107">107</a> format.html { render :action =&gt; &quot;new&quot; }</pre></td>
661
697
  </tr>
662
698
 
663
699
 
664
700
 
665
701
  <tr class="marked">
666
- <td><pre><a name="line102">102</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
702
+ <td><pre><a name="line108">108</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
667
703
  </tr>
668
704
 
669
705
 
670
706
 
671
707
  <tr class="inferred">
672
- <td><pre><a name="line103">103</a> end</pre></td>
708
+ <td><pre><a name="line109">109</a> end</pre></td>
673
709
  </tr>
674
710
 
675
711
 
676
712
 
677
713
  <tr class="inferred">
678
- <td><pre><a name="line104">104</a> end</pre></td>
714
+ <td><pre><a name="line110">110</a> end</pre></td>
679
715
  </tr>
680
716
 
681
717
 
682
718
 
683
719
  <tr class="inferred">
684
- <td><pre><a name="line105">105</a> end</pre></td>
720
+ <td><pre><a name="line111">111</a> end</pre></td>
685
721
  </tr>
686
722
 
687
723
 
688
724
 
689
725
  <tr class="inferred">
690
- <td><pre><a name="line106">106</a> </pre></td>
726
+ <td><pre><a name="line112">112</a> </pre></td>
691
727
  </tr>
692
728
 
693
729
 
694
730
 
695
731
  <tr class="inferred">
696
- <td><pre><a name="line107">107</a> # PUT /stories/&quot;1</pre></td>
732
+ <td><pre><a name="line113">113</a> # PUT /stories/&quot;1</pre></td>
697
733
  </tr>
698
734
 
699
735
 
700
736
 
701
737
  <tr class="inferred">
702
- <td><pre><a name="line108">108</a> # PUT /stories/1.xml</pre></td>
738
+ <td><pre><a name="line114">114</a> # PUT /stories/1.xml</pre></td>
703
739
  </tr>
704
740
 
705
741
 
706
742
 
707
743
  <tr class="marked">
708
- <td><pre><a name="line109">109</a> def update</pre></td>
744
+ <td><pre><a name="line115">115</a> def update</pre></td>
709
745
  </tr>
710
746
 
711
747
 
712
748
 
713
749
  <tr class="marked">
714
- <td><pre><a name="line110">110</a> @story = Story.find_by_slug(params[:id])</pre></td>
750
+ <td><pre><a name="line116">116</a> @story = Story.find_by_slug(params[:id])</pre></td>
715
751
  </tr>
716
752
 
717
753
 
718
754
 
719
755
  <tr class="inferred">
720
- <td><pre><a name="line111">111</a> </pre></td>
756
+ <td><pre><a name="line117">117</a> </pre></td>
721
757
  </tr>
722
758
 
723
759
 
724
760
 
725
761
  <tr class="marked">
726
- <td><pre><a name="line112">112</a> if params[:story] and params[:story][:status]</pre></td>
762
+ <td><pre><a name="line118">118</a> if params[:story] and params[:story][:status]</pre></td>
727
763
  </tr>
728
764
 
729
765
 
730
766
 
731
767
  <tr class="uncovered">
732
- <td><pre><a name="line113">113</a> if params[:story][:status] == 'in_progress'</pre></td>
768
+ <td><pre><a name="line119">119</a> if params[:story][:status] == 'in_progress'</pre></td>
733
769
  </tr>
734
770
 
735
771
 
736
772
 
737
773
  <tr class="uncovered">
738
- <td><pre><a name="line114">114</a> @story.assign</pre></td>
774
+ <td><pre><a name="line120">120</a> @story.assign</pre></td>
739
775
  </tr>
740
776
 
741
777
 
742
778
 
743
779
  <tr class="uncovered">
744
- <td><pre><a name="line115">115</a> end</pre></td>
780
+ <td><pre><a name="line121">121</a> end</pre></td>
745
781
  </tr>
746
782
 
747
783
 
748
784
 
749
785
  <tr class="uncovered">
750
- <td><pre><a name="line116">116</a> </pre></td>
786
+ <td><pre><a name="line122">122</a> </pre></td>
751
787
  </tr>
752
788
 
753
789
 
754
790
 
755
791
  <tr class="uncovered">
756
- <td><pre><a name="line117">117</a> if params[:story][:status] == 'quality_assurance'</pre></td>
792
+ <td><pre><a name="line123">123</a> if params[:story][:status] == 'quality_assurance'</pre></td>
757
793
  </tr>
758
794
 
759
795
 
760
796
 
761
797
  <tr class="uncovered">
762
- <td><pre><a name="line118">118</a> @story.check_quality</pre></td>
798
+ <td><pre><a name="line124">124</a> @story.check_quality</pre></td>
763
799
  </tr>
764
800
 
765
801
 
766
802
 
767
803
  <tr class="uncovered">
768
- <td><pre><a name="line119">119</a> end</pre></td>
804
+ <td><pre><a name="line125">125</a> end</pre></td>
769
805
  </tr>
770
806
 
771
807
 
772
808
 
773
809
  <tr class="uncovered">
774
- <td><pre><a name="line120">120</a> </pre></td>
810
+ <td><pre><a name="line126">126</a> </pre></td>
775
811
  </tr>
776
812
 
777
813
 
778
814
 
779
815
  <tr class="uncovered">
780
- <td><pre><a name="line121">121</a> if params[:story][:status] == 'new'</pre></td>
816
+ <td><pre><a name="line127">127</a> if params[:story][:status] == 'new'</pre></td>
781
817
  </tr>
782
818
 
783
819
 
784
820
 
785
821
  <tr class="uncovered">
786
- <td><pre><a name="line122">122</a> @story.back_to_new</pre></td>
822
+ <td><pre><a name="line128">128</a> @story.back_to_new</pre></td>
787
823
  </tr>
788
824
 
789
825
 
790
826
 
791
827
  <tr class="uncovered">
792
- <td><pre><a name="line123">123</a> end</pre></td>
828
+ <td><pre><a name="line129">129</a> end</pre></td>
793
829
  </tr>
794
830
 
795
831
 
796
832
 
797
833
  <tr class="uncovered">
798
- <td><pre><a name="line124">124</a> </pre></td>
834
+ <td><pre><a name="line130">130</a> </pre></td>
799
835
  </tr>
800
836
 
801
837
 
802
838
 
803
839
  <tr class="uncovered">
804
- <td><pre><a name="line125">125</a> if params[:story][:status] == 'completed'</pre></td>
840
+ <td><pre><a name="line131">131</a> if params[:story][:status] == 'completed'</pre></td>
805
841
  </tr>
806
842
 
807
843
 
808
844
 
809
845
  <tr class="uncovered">
810
- <td><pre><a name="line126">126</a> @story.finish</pre></td>
846
+ <td><pre><a name="line132">132</a> @story.finish</pre></td>
811
847
  </tr>
812
848
 
813
849
 
814
850
 
815
851
  <tr class="uncovered">
816
- <td><pre><a name="line127">127</a> end</pre></td>
852
+ <td><pre><a name="line133">133</a> end</pre></td>
817
853
  </tr>
818
854
 
819
855
 
820
856
 
821
857
  <tr class="uncovered">
822
- <td><pre><a name="line128">128</a> end</pre></td>
858
+ <td><pre><a name="line134">134</a> end</pre></td>
823
859
  </tr>
824
860
 
825
861
 
826
862
 
827
863
  <tr class="inferred">
828
- <td><pre><a name="line129">129</a> </pre></td>
864
+ <td><pre><a name="line135">135</a> </pre></td>
829
865
  </tr>
830
866
 
831
867
 
832
868
 
833
869
  <tr class="marked">
834
- <td><pre><a name="line130">130</a> respond_to do |format|</pre></td>
870
+ <td><pre><a name="line136">136</a> respond_to do |format|</pre></td>
835
871
  </tr>
836
872
 
837
873
 
838
874
 
839
875
  <tr class="marked">
840
- <td><pre><a name="line131">131</a> if @story.update_attributes(params[:story])</pre></td>
876
+ <td><pre><a name="line137">137</a> if @story.update_attributes(params[:story])</pre></td>
841
877
  </tr>
842
878
 
843
879
 
844
880
 
845
881
  <tr class="marked">
846
- <td><pre><a name="line132">132</a> flash[:notice] = 'Story was successfully updated.'</pre></td>
882
+ <td><pre><a name="line138">138</a> flash[:notice] = 'Story was successfully updated.'</pre></td>
847
883
  </tr>
848
884
 
849
885
 
850
886
 
851
887
  <tr class="marked">
852
- <td><pre><a name="line133">133</a> format.html { redirect_to iteration_story_path(@iteration, @story) }</pre></td>
888
+ <td><pre><a name="line139">139</a> format.html { redirect_to iteration_story_path(@iteration, @story) }</pre></td>
853
889
  </tr>
854
890
 
855
891
 
856
892
 
857
893
  <tr class="marked">
858
- <td><pre><a name="line134">134</a> format.xml { head :ok }</pre></td>
894
+ <td><pre><a name="line140">140</a> format.xml { head :ok }</pre></td>
859
895
  </tr>
860
896
 
861
897
 
862
898
 
863
899
  <tr class="marked">
864
- <td><pre><a name="line135">135</a> format.js { redirect_to iteration_stories_path(@iteration) }</pre></td>
900
+ <td><pre><a name="line141">141</a> format.js { redirect_to iteration_stories_path(@iteration) }</pre></td>
865
901
  </tr>
866
902
 
867
903
 
868
904
 
869
905
  <tr class="inferred">
870
- <td><pre><a name="line136">136</a> else</pre></td>
906
+ <td><pre><a name="line142">142</a> else</pre></td>
871
907
  </tr>
872
908
 
873
909
 
874
910
 
875
911
  <tr class="marked">
876
- <td><pre><a name="line137">137</a> format.html { render :action =&gt; &quot;edit&quot; }</pre></td>
912
+ <td><pre><a name="line143">143</a> format.html { render :action =&gt; &quot;edit&quot; }</pre></td>
877
913
  </tr>
878
914
 
879
915
 
880
916
 
881
917
  <tr class="marked">
882
- <td><pre><a name="line138">138</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
918
+ <td><pre><a name="line144">144</a> format.xml { render :xml =&gt; @story.errors, :status =&gt; :unprocessable_entity }</pre></td>
883
919
  </tr>
884
920
 
885
921
 
886
922
 
887
923
  <tr class="inferred">
888
- <td><pre><a name="line139">139</a> end</pre></td>
924
+ <td><pre><a name="line145">145</a> end</pre></td>
889
925
  </tr>
890
926
 
891
927
 
892
928
 
893
929
  <tr class="inferred">
894
- <td><pre><a name="line140">140</a> end</pre></td>
930
+ <td><pre><a name="line146">146</a> end</pre></td>
895
931
  </tr>
896
932
 
897
933
 
898
934
 
899
935
  <tr class="inferred">
900
- <td><pre><a name="line141">141</a> </pre></td>
936
+ <td><pre><a name="line147">147</a> </pre></td>
901
937
  </tr>
902
938
 
903
939
 
904
940
 
905
941
  <tr class="inferred">
906
- <td><pre><a name="line142">142</a> </pre></td>
942
+ <td><pre><a name="line148">148</a> </pre></td>
907
943
  </tr>
908
944
 
909
945
 
910
946
 
911
947
  <tr class="inferred">
912
- <td><pre><a name="line143">143</a> end</pre></td>
948
+ <td><pre><a name="line149">149</a> end</pre></td>
913
949
  </tr>
914
950
 
915
951
 
916
952
 
917
953
  <tr class="inferred">
918
- <td><pre><a name="line144">144</a> </pre></td>
954
+ <td><pre><a name="line150">150</a> </pre></td>
919
955
  </tr>
920
956
 
921
957
 
922
958
 
923
959
  <tr class="inferred">
924
- <td><pre><a name="line145">145</a> # DELETE /stories/1</pre></td>
960
+ <td><pre><a name="line151">151</a> # DELETE /stories/1</pre></td>
925
961
  </tr>
926
962
 
927
963
 
928
964
 
929
965
  <tr class="inferred">
930
- <td><pre><a name="line146">146</a> # DELETE /stories/1.xml</pre></td>
966
+ <td><pre><a name="line152">152</a> # DELETE /stories/1.xml</pre></td>
931
967
  </tr>
932
968
 
933
969
 
934
970
 
935
971
  <tr class="marked">
936
- <td><pre><a name="line147">147</a> def destroy</pre></td>
972
+ <td><pre><a name="line153">153</a> def destroy</pre></td>
937
973
  </tr>
938
974
 
939
975
 
940
976
 
941
977
  <tr class="marked">
942
- <td><pre><a name="line148">148</a> @story = Story.find_by_slug(params[:id])</pre></td>
978
+ <td><pre><a name="line154">154</a> @story = Story.find_by_slug(params[:id])</pre></td>
943
979
  </tr>
944
980
 
945
981
 
946
982
 
947
983
  <tr class="marked">
948
- <td><pre><a name="line149">149</a> @story.destroy</pre></td>
984
+ <td><pre><a name="line155">155</a> @story.destroy</pre></td>
949
985
  </tr>
950
986
 
951
987
 
952
988
 
953
989
  <tr class="inferred">
954
- <td><pre><a name="line150">150</a> </pre></td>
990
+ <td><pre><a name="line156">156</a> </pre></td>
955
991
  </tr>
956
992
 
957
993
 
958
994
 
959
995
  <tr class="marked">
960
- <td><pre><a name="line151">151</a> respond_to do |format|</pre></td>
996
+ <td><pre><a name="line157">157</a> respond_to do |format|</pre></td>
961
997
  </tr>
962
998
 
963
999
 
964
1000
 
965
1001
  <tr class="marked">
966
- <td><pre><a name="line152">152</a> format.html { redirect_to iteration_stories_path(@iteration) }</pre></td>
1002
+ <td><pre><a name="line158">158</a> format.html { redirect_to iteration_stories_path(@iteration) }</pre></td>
967
1003
  </tr>
968
1004
 
969
1005
 
970
1006
 
971
1007
  <tr class="marked">
972
- <td><pre><a name="line153">153</a> format.xml { head :ok }</pre></td>
1008
+ <td><pre><a name="line159">159</a> format.xml { head :ok }</pre></td>
973
1009
  </tr>
974
1010
 
975
1011
 
976
1012
 
977
1013
  <tr class="inferred">
978
- <td><pre><a name="line154">154</a> end</pre></td>
1014
+ <td><pre><a name="line160">160</a> end</pre></td>
979
1015
  </tr>
980
1016
 
981
1017
 
982
1018
 
983
1019
  <tr class="inferred">
984
- <td><pre><a name="line155">155</a> end</pre></td>
1020
+ <td><pre><a name="line161">161</a> end</pre></td>
985
1021
  </tr>
986
1022
 
987
1023
 
988
1024
 
989
1025
  <tr class="inferred">
990
- <td><pre><a name="line156">156</a> </pre></td>
1026
+ <td><pre><a name="line162">162</a> </pre></td>
991
1027
  </tr>
992
1028
 
993
1029
 
994
1030
 
995
1031
  <tr class="inferred">
996
- <td><pre><a name="line157">157</a> </pre></td>
1032
+ <td><pre><a name="line163">163</a> </pre></td>
997
1033
  </tr>
998
1034
 
999
1035
 
1000
1036
 
1001
1037
  <tr class="marked">
1002
- <td><pre><a name="line158">158</a> private</pre></td>
1038
+ <td><pre><a name="line164">164</a> private</pre></td>
1003
1039
  </tr>
1004
1040
 
1005
1041
 
1006
1042
 
1007
1043
  <tr class="inferred">
1008
- <td><pre><a name="line159">159</a> </pre></td>
1044
+ <td><pre><a name="line165">165</a> </pre></td>
1009
1045
  </tr>
1010
1046
 
1011
1047
 
1012
1048
 
1013
1049
  <tr class="marked">
1014
- <td><pre><a name="line160">160</a> def retrieve_iterations</pre></td>
1050
+ <td><pre><a name="line166">166</a> def retrieve_iterations</pre></td>
1015
1051
  </tr>
1016
1052
 
1017
1053
 
1018
1054
 
1019
1055
  <tr class="marked">
1020
- <td><pre><a name="line161">161</a> @iterations = Iteration.all</pre></td>
1056
+ <td><pre><a name="line167">167</a> @iterations = Iteration.all</pre></td>
1021
1057
  </tr>
1022
1058
 
1023
1059
 
1024
1060
 
1025
1061
  <tr class="inferred">
1026
- <td><pre><a name="line162">162</a> end</pre></td>
1062
+ <td><pre><a name="line168">168</a> end</pre></td>
1027
1063
  </tr>
1028
1064
 
1029
1065
 
1030
1066
 
1031
1067
  <tr class="inferred">
1032
- <td><pre><a name="line163">163</a> </pre></td>
1068
+ <td><pre><a name="line169">169</a> </pre></td>
1033
1069
  </tr>
1034
1070
 
1035
1071
 
1036
1072
 
1037
1073
  <tr class="marked">
1038
- <td><pre><a name="line164">164</a> def load_iteration</pre></td>
1074
+ <td><pre><a name="line170">170</a> def load_iteration</pre></td>
1039
1075
  </tr>
1040
1076
 
1041
1077
 
1042
1078
 
1043
1079
  <tr class="marked">
1044
- <td><pre><a name="line165">165</a> @iteration = Iteration.find(params[:iteration_id])</pre></td>
1080
+ <td><pre><a name="line171">171</a> @iteration = Iteration.find(params[:iteration_id])</pre></td>
1045
1081
  </tr>
1046
1082
 
1047
1083
 
1048
1084
 
1049
1085
  <tr class="inferred">
1050
- <td><pre><a name="line166">166</a> end</pre></td>
1086
+ <td><pre><a name="line172">172</a> end</pre></td>
1051
1087
  </tr>
1052
1088
 
1053
1089
 
1054
1090
 
1055
1091
  <tr class="inferred">
1056
- <td><pre><a name="line167">167</a> end</pre></td>
1092
+ <td><pre><a name="line173">173</a> end</pre></td>
1057
1093
  </tr>
1058
1094
 
1059
1095
 
1060
1096
 
1061
1097
  <tr class="inferred">
1062
- <td><pre><a name="line168">168</a> </pre></td>
1098
+ <td><pre><a name="line174">174</a> </pre></td>
1063
1099
  </tr>
1064
1100
 
1065
1101
  </tbody>
1066
1102
  </table>
1067
1103
 
1068
- <p>Generated on Wed Mar 10 10:25:24 +0000 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
1104
+ <p>Generated on Tue Mar 30 15:13:35 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
1069
1105
 
1070
1106
  </body>
1071
1107
  </html>