Friday, May 8, 2009

My RailsSpace Journey - Day 7

  1. RailsSpace Journey: As I stated yesterday, I messed up the source code/project so after some consideration, I have decided to start over.
  2. NOTE THAT ALL PAGE NUMBERS ARE FROM RailsSpace Book unless otherwise.
  3. Created a new project, railsspace, inside netbeans. Also deleted railsspace_development and railsspace_test database. (p.16)
  4. Started up server and it worked http://localhost:300/ (p.18)
  5. Created a controller with 3 actions (index, about, help). (p.21)
  6. Fixed routes.rb and deleted public/index.html (p.25-26). Had to rebuild railsspace_development and railsspace_test database, so I did it and web page worked.
  7. End of Chapter 2, so pushed the code to github.com/jasnow/railsspace. (p.41)
  8. git init, git add . , git commit -m "comment" ; git remote add origin git@github.com:jasnow/railsspace.git ; git push origin master
  9. End of Chapter 3, so pushed the code to github.com/jasnow/railsspace. (p.64)
  10. Created user controller with 2 actons (index, register) (p.66)
  11. End of Chapter 4, so pushed the code to github.com/jasnow/railsspace. (p.95)
  12. Ran "rake db:test:prepare" (p.99)
  13. Ran "ruby test/functional/site_controller_test.rb" (1,1,0,0) (p.99)
  14. Ran "ruby test/functional/site_controller_test.rb" (3,7,1,0) (p.101-102)
  15. Ran "ruby test/functional/site_controller_test.rb" (3,9,0,0) (p.102-103)
  16. Ran "rake test:functionals" (4,10,0,0) (p.104)
  17. Ran "ruby test/functional/user_controller_test.rb" (1,3,0,0) (p.104)
  18. Ran "ruby test/functional/user_controller_test.rb" (1,8,0,0) (p.106)
  19. Ran "ruby test/functional/user_controller_test.rb" (2,12,0,0) (p.107)
  20. Ran "ruby test/functional/user_controller_test.rb" (3,210,0) (p.108-109)
  21. Ran "rake test:functionals" (6,30,0,0) (p.110)
  22. Ran "ruby test/unit/user_test.rb" (1,1,0,0) (p.112-113)
  23. Ran "rake test:units" (1,1,0,0) (p.113)
  24. Ran "ruby test/unit/user_test.rb" (2,2,0,0) (p.113)
  25. Ran "ruby test/unit/user_test.rb" (2,5,0,0) (p.114)
  26. Ran "ruby test/unit/user_test.rb" (3,8,0,0) (p.116)
  27. Ran "ruby test/unit/user_test.rb" (5,14,0,0) (p.117)
  28. Ran "ruby test/unit/user_test.rb" (7,20,0,0) (p.120)
  29. Ran "ruby test/unit/user_test.rb" (8,22,0,0) (p.121)
  30. Ran "ruby test/unit/user_test.rb" (9,29,0,0) (p.122)
  31. Ran "ruby test/unit/user_test.rb" (10,47,0,0) (p.123)
  32. Ran "ruby test/unit/user_test.rb" (12,53,0,0) (p.124-125)
  33. Ran "ruby test/unit/user_test.rb" (12,53,0,0) (p.125)
  34. Ran "$rake" (p.128) and got this; C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby.exe -I"lib;test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader.rb" "test/unit/user_test.rb"
    (in C:/cygwin/home/jasnow/SPACE-RAILSSPACE/railsspace)
    Loaded suite C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader
    Started
    ............
    Finished in 0.407 seconds.
    12 tests, 53 assertions, 0 failures, 0 errors
    C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby.exe -I"lib;test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader.rb" "test/functional/site_controller_test.rb" "test/functional/user_controller_test.rb"
    Loaded suite C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader
    Started
    ......
    Finished in 0.443 seconds.
    6 tests, 30 assertions, 0 failures, 0 errors
    C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby.exe -I"lib;test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader.rb"
  35. Then ran this: $ rake stats (p.129)
    (in C:/cygwin/home/jasnow/SPACE-RAILSSPACE/railsspace)
    +----------------------+-------+-------+---------+---------+-----+-------+
    | Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
    +----------------------+-------+-------+---------+---------+-----+-------+
    | Controllers | 47 | 30 | 3 | 5 | 1 | 4 |
    | Helpers | 11 | 10 | 0 | 1 | 0 | 8 |
    | Models | 29 | 23 | 1 | 0 | 0 | 0 |
    | Libraries | 0 | 0 | 0 | 0 | 0 | 0 |
    | Integration tests | 0 | 0 | 0 | 0 | 0 | 0 |
    | Functional tests | 129 | 104 | 4 | 10 | 2 | 8 |
    | Unit tests | 163 | 113 | 1 | 13 | 13 | 6 |
    +----------------------+-------+-------+---------+---------+-----+-------+
    | Total | 379 | 280 | 9 | 29 | 3 | 7 |
    +----------------------+-------+-------+---------+---------+-----+-------+
    Code LOC: 63 Test LOC: 217 Code to Test Ratio: 1:3.4
  36. End of Chapter 5, so pushed the code to github.com/jasnow/railsspace. (p.129)
  37. Ran "rake db:sessions:create" (p.133)
  38. Edited environment.rb. (p.133)
  39. Ran "ruby test/functional/user_controller_test.rb" (3,23,0,0) (p.135)
  40. Ran "ruby test/functional/user_controller_test.rb" (3,23,0,0) (p.143)
  41. Ran "ruby test/functional/user_controller_test.rb" (4,30,0,0) (p.143-144)
  42. Ran "ruby test/functional/user_controller_test.rb" (5,34,0,0) (p.144)
  43. Ran "ruby test/functional/user_controller_test.rb" (7,42,0,0) (p.145)
  44. Ran "rake test:recent" (7,42,0,0) (p.146)
  45. Ran "ruby test/functional/site_controller_test.rb" (4,12,0,0) (p.149)
  46. Ran "ruby test/functional/user_controller_test.rb" (8,47,0,0) (p.149)
  47. Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.150)
  48. Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.150)
  49. Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.151)
  50. Ran "ruby test/functional/user_controller_test.rb" (BROKEN TEST RUN ) (p.152)
  51. Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.154)
  52. Ran "ruby test/functional/user_controller_test.rb" (10,53,0,0) (p.155)
  53. Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.155)
  54. Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.159)
  55. Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.160-161)
  56. Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.162)
  57. Ran "ruby test/functional/user_controller_test.rb" (12,61,0,0) (p.162-163)
  58. Ran "ruby test/functional/user_controller_test.rb" (13,66,0,0) (p.163)
  59. Ran "ruby test/functional/user_controller_test.rb" (13,66,0,0) (p.166)
  60. Ran "ruby test/functional/user_controller_test.rb" (13,66,0,0) (p.167)
  61. Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.167)
  62. Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.168-169)
  63. Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.169)
  64. Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.170)
  65. Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.170)
  66. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) FINALLY FIXED. (p.170)
  67. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.172)
  68. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.173)
  69. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.173)
  70. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.174)
  71. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.174-175)
  72. Ran "ruby test/functional/user_controller_test.rb" (13,68,1,0) (p.175)
  73. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.176) FIXED
  74. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.176-177)
  75. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.177)
  76. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.177)
  77. Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.178-179)
  78. Then ran this: $ rake
    (in C:/cygwin/home/jasnow/SPACE-RAILSSPACE/railsspace)
    C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby.exe -I"lib;test" "C:/cygdrive/c/deep
    dive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader.rb" "test/
    unit/user_test.rb"
    Loaded suite C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/r
    ake/rake_test_loader
    Started
    ............
    Finished in 0.413 seconds.
    12 tests, 53 assertions, 0 failures, 0 errors
    C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby.exe -I"lib;test" "C:/cygdrive/c/deep
    dive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader.rb" "test/
    functional/site_controller_test.rb" "test/functional/user_controller_test.rb"
    Loaded suite C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/r
    ake/rake_test_loader
    Started
    .................
    Finished in 0.523 seconds.
    17 tests, 80 assertions, 0 failures, 0 errors
    C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby.exe -I"lib;test" "C:/cygdrive/c/deep
    dive/InstantRails-2.0-win/ruby/gems/rake-0.8.5/lib/rake/rake_test_loader.rb"
  79. End of Chapter 6, so pushed the code to github.com/jasnow/railsspace. (p.180)

No comments:

Post a Comment