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.
Thanks for the response. I am running vers. 1.2.3 and installed using the directions in your book for Instant Rails. I had some issues as MySQL was already installed so I have never been able to get it to work appropriately in conjunction with Instant Rails. With that said, I have never seemed to have any major problems.
If I need to reinstall everything, I'd be glad to do so. I've been hesitant to do so though as I am not sure if any of my issues are operator-error or not. As I've mentioned previously, I am a complete novice at all of this.
Here is my fixtures file... After running into the failure, I went to the code_archive and copied and pasted. The error remained.
apparently it doesn't pick up version 1.2.3 properly. Your stack traces mention ActionPack 1.12.1 while Rails 1.2.3 ships with ActionPack 1.13.3 so there's definitely some confusion there.
I don't have a windows box at hand to reproduce this sadly, but try and go ahead running:
Code:
gem update
and
Code:
gem update --system
This should update both your installed RubyGems and the installed RubyGems system (something changed with that along the way, too).
Bookmarks