Well, I've overcome some initial problems and made it fairly smoothly to testing in Chapter 7. My unit tests run fine but I am getting 2 errors and a failure when it comes to my controller tests. I have checked for typos and everything appears to be clean. I have also tried to go to each test and cross reference it with each function that it is testing. With that said, my understanding of the terms is still a bit rusty. Any thoughts or direction? I have copied my test results below.

Thanks in advance!


7 tests, 7 assertions, 0 failures, 0 errors
C:/InstantRails/InstantRails/ruby/bin/ruby -Ilib;test "C:/InstantRails/InstantRa
ils/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb" "test/functional/story_controller_test.rb"
Loaded suite C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3
/lib/rake/rake_test_loader
Started
.......EFE
Finished in 0.45 seconds.

1) Error:
test_should_show_new_form(StoryControllerTest):
NoMethodError: undefined method `assert_select' for #<StoryControllerTest:0x4afb
f38>
C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/l
ib/action_controller/test_process.rb:432:in `method_missing'
./test/functional/story_controller_test.rb:32:in `test_should_show_new_form'


2) Failure:
test_should_show_story(StoryControllerTest) [./test/functional/story_controller_
test.rb:54]:
<#<Story:0x49b9f18
@attributes=
{"permalink"=>"sitepoint-forums",
"name"=>"SitePoint Forums",
"id"=>"2",
"link"=>"http://www.sitepoint.com/forums/"}>> expected but was
<#<Story:0x49dbd88
@attributes=
{"permalink"=>"my-shiny-weblog",
"name"=>"My shiny weblog",
"id"=>"1",
"link"=>"http://poocs.net/"},
@votes=
[#<Vote:0x49458d8 @attributes={"story_id"=>"1", "id"=>"1", "created_at"=>"2007
-07-10 20:20:18"}>, #<Vote:0x4945818 @attributes={"story_id"=>"1", "id"=>"2", "c
reated_at"=>"2007-07-10 20:20:18"}>]>>.

3) Error:
test_should_show_story_vote_elements(StoryControllerTest):
NoMethodError: undefined method `assert_select' for #<StoryControllerTest:0x4afb
ed8>
C:/InstantRails/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/l
ib/action_controller/test_process.rb:432:in `method_missing'
./test/functional/story_controller_test.rb:59:in `test_should_show_story_vot
e_elements'

10 tests, 20 assertions, 1 failures, 2 errors
C:/InstantRails/InstantRails/ruby/bin/ruby -Ilib;test "C:/InstantRails/InstantRa
ils/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
rake aborted!
Test failures

(See full trace by running task with --trace)