- RailsSpace Book: Chapter 7 (Advanced Login)
- Then updated app/views/user/login.rhtml as specified in Listing 7.1 (p.182).
- Listing 7.2 (repeat)
- NOT GOING TO REPEAT step 2 style statements going forward.
- Ran all the test: $ rake
(in C:/cygwin/home/jasnow/RAILSPASSION/rails_space)
C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/lib" -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/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.4/lib/r
ake/rake_test_loader
Started ............
Finished in 0.339 seconds.
12 tests, 53 assertions, 0 failures, 0 errors
C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/lib" -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/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.4/lib/r
ake/rake_test_loader
Started ..............
Finished in 0.574 seconds.
14 tests, 82 assertions, 0 failures, 0 errors
C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/lib" -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/integration/remember_me_test.rb"
Loaded suite C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/lib/r
ake/rake_test_loader
Started
1
42
1
.
Finished in 0.344 seconds.
1 tests, 2 assertions, 0 failures, 0 errors - $ rake stats
(in C:/cygwin/home/jasnow/RAILSPASSION/rails_space)
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 113 | 89 | 3 | 12 | 4 | 5 |
| Helpers | 17 | 13 | 0 | 2 | 0 | 4 |
| Models | 76 | 55 | 1 | 7 | 7 | 5 |
| Libraries | 0 | 0 | 0 | 0 | 0 | 0 |
| Integration tests | 28 | 20 | 1 | 2 | 2 | 8 |
| Functional tests 526 | 396 | 4 | 38 | 9 | 8 |
| Unit tests | 163 | 113 | 1 | 13 | 13 | 6 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 923 | 686 | 10 | 74 | 7 | 7 |
+----------------------+-------+-------+---------+---------+-----+-------+
Code LOC: 157 Test LOC: 529 Code to Test Ratio: 1:3.4 - End of Chapter 7.
- Starting Chapter 8 (Updating user information)
- At the end of chapter 8, Ran all the tests: $ rake 2>&1 |tee o_r252b
C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/lib" -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/unit/user_test.rb"
(in C:/cygwin/home/jasnow/RAILSPASSION/rails_space)
Loaded suite C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/lib/r
ake/rake_test_loader
Started ..........
Finished in 0.345 seconds.
10 tests, 53 assertions, 0 failures, 0 errors
C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/lib" -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/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.4/lib/r
ake/rake_test_loader
Started ..................
Finished in 0.517 seconds.
18 tests, 93 assertions, 0 failures, 0 errors
C:/DeepDive/InstantRails-2.0-win/ruby/bin/ruby -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/lib" -I"C:/cygwin/home/jasnow/RAILSPASSION/rails_space/test" "C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/integration/remember_me_test.rb"
Loaded suite C:/cygdrive/c/deepdive/InstantRails-2.0-win/ruby/gems/rake-0.8.4/lib/r
ake/rake_test_loader
Started
1
42
1
.
Finished in 0.316 seconds.
1 tests, 2 assertions, 0 failures, 0 errors - End of Chapter 8.
- Starting Chapter 9.
- Commented out config.action_controller.allow_forgery_protection line in config/environment/test.rb and "RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION" in configuration/environment.rb file.
- Test suites are broken/must repair and put into git.
Wednesday, May 6, 2009
My RailsSpace Journey - Day 5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment