Results 1 to 2 of 2
Aug 5, 2010, 10:53 #1
- Join Date
- Apr 2010
- 0 Post(s)
- 0 Thread(s)
Simply rails 2 help please! Test is failing. Chapter 9
My tests are failing, and I've double checked the code archive and I can't find the fault. Please help.
I'm on Chapter 9 page 347 and I'm supposed to run the final test and it should work, but I went wrong somewhere. This is the error the console gives me...
...........................F.... Finished in 1.484 seconds. 1) Failure: test_should_show_user(UsersControllerTest) [/test/functional/users_controller_test.rb:6]: Expected response to be a <:succes>, but was <200> 32 tests, 71 assertions, 1 failures, 0 errors D:/InstantRails/ruby/bin/ruby.exe -I"lib;test" "D:/InstantRails/ruby/lib/ruby/ge ms/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" Errors running test:functionals!
class UsersControllerTest < ActionController::TestCase def test_should_show_user get :show, :id => users(:mj) assert_response :succes assert_template 'show' assert_equal users(:mj), assigns(:user) end
mj: login: mj password: sekrit name: MJ Meyer email: "This is blank to avoid spam from forums as I used my actual email addy" john: login: john password: gh752px name: John Doe email: email@example.com
I also checked my controller files as well as my show files to make sure the code is correct. I could not find any differences.