- RailsSpace Journey: As I stated yesterday, I messed up the source code/project so after some consideration, I have decided to start over.
- NOTE THAT ALL PAGE NUMBERS ARE FROM RailsSpace Book unless otherwise.
- Created a new project, railsspace, inside netbeans. Also deleted railsspace_development and railsspace_test database. (p.16)
- Started up server and it worked http://localhost:300/ (p.18)
- Created a controller with 3 actions (index, about, help). (p.21)
- 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.
- End of Chapter 2, so pushed the code to github.com/jasnow/railsspace. (p.41)
- git init, git add . , git commit -m "comment" ; git remote add origin git@github.com:jasnow/railsspace.git ; git push origin master
- End of Chapter 3, so pushed the code to github.com/jasnow/railsspace. (p.64)
- Created user controller with 2 actons (index, register) (p.66)
- End of Chapter 4, so pushed the code to github.com/jasnow/railsspace. (p.95)
- Ran "rake db:test:prepare" (p.99)
- Ran "ruby test/functional/site_controller_test.rb" (1,1,0,0) (p.99)
- Ran "ruby test/functional/site_controller_test.rb" (3,7,1,0) (p.101-102)
- Ran "ruby test/functional/site_controller_test.rb" (3,9,0,0) (p.102-103)
- Ran "rake test:functionals" (4,10,0,0) (p.104)
- Ran "ruby test/functional/user_controller_test.rb" (1,3,0,0) (p.104)
- Ran "ruby test/functional/user_controller_test.rb" (1,8,0,0) (p.106)
- Ran "ruby test/functional/user_controller_test.rb" (2,12,0,0) (p.107)
- Ran "ruby test/functional/user_controller_test.rb" (3,210,0) (p.108-109)
- Ran "rake test:functionals" (6,30,0,0) (p.110)
- Ran "ruby test/unit/user_test.rb" (1,1,0,0) (p.112-113)
- Ran "rake test:units" (1,1,0,0) (p.113)
- Ran "ruby test/unit/user_test.rb" (2,2,0,0) (p.113)
- Ran "ruby test/unit/user_test.rb" (2,5,0,0) (p.114)
- Ran "ruby test/unit/user_test.rb" (3,8,0,0) (p.116)
- Ran "ruby test/unit/user_test.rb" (5,14,0,0) (p.117)
- Ran "ruby test/unit/user_test.rb" (7,20,0,0) (p.120)
- Ran "ruby test/unit/user_test.rb" (8,22,0,0) (p.121)
- Ran "ruby test/unit/user_test.rb" (9,29,0,0) (p.122)
- Ran "ruby test/unit/user_test.rb" (10,47,0,0) (p.123)
- Ran "ruby test/unit/user_test.rb" (12,53,0,0) (p.124-125)
- Ran "ruby test/unit/user_test.rb" (12,53,0,0) (p.125)
- 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" - 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 - End of Chapter 5, so pushed the code to github.com/jasnow/railsspace. (p.129)
- Ran "rake db:sessions:create" (p.133)
- Edited environment.rb. (p.133)
- Ran "ruby test/functional/user_controller_test.rb" (3,23,0,0) (p.135)
- Ran "ruby test/functional/user_controller_test.rb" (3,23,0,0) (p.143)
- Ran "ruby test/functional/user_controller_test.rb" (4,30,0,0) (p.143-144)
- Ran "ruby test/functional/user_controller_test.rb" (5,34,0,0) (p.144)
- Ran "ruby test/functional/user_controller_test.rb" (7,42,0,0) (p.145)
- Ran "rake test:recent" (7,42,0,0) (p.146)
- Ran "ruby test/functional/site_controller_test.rb" (4,12,0,0) (p.149)
- Ran "ruby test/functional/user_controller_test.rb" (8,47,0,0) (p.149)
- Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.150)
- Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.150)
- Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.151)
- Ran "ruby test/functional/user_controller_test.rb" (BROKEN TEST RUN ) (p.152)
- Ran "ruby test/functional/user_controller_test.rb" (9,50,0,0) (p.154)
- Ran "ruby test/functional/user_controller_test.rb" (10,53,0,0) (p.155)
- Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.155)
- Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.159)
- Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.160-161)
- Ran "ruby test/functional/user_controller_test.rb" (11,55,0,0) (p.162)
- Ran "ruby test/functional/user_controller_test.rb" (12,61,0,0) (p.162-163)
- Ran "ruby test/functional/user_controller_test.rb" (13,66,0,0) (p.163)
- Ran "ruby test/functional/user_controller_test.rb" (13,66,0,0) (p.166)
- Ran "ruby test/functional/user_controller_test.rb" (13,66,0,0) (p.167)
- Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.167)
- Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.168-169)
- Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.169)
- Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.170)
- Ran "ruby test/functional/user_controller_test.rb" (13,67,1,0) (p.170)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) FINALLY FIXED. (p.170)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.172)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.173)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.173)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.174)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.174-175)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,1,0) (p.175)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.176) FIXED
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.176-177)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.177)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.177)
- Ran "ruby test/functional/user_controller_test.rb" (13,68,0,0) (p.178-179)
- 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" - End of Chapter 6, so pushed the code to github.com/jasnow/railsspace. (p.180)
Friday, May 8, 2009
My RailsSpace Journey - Day 7
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment