I installed the salted_login_generator gem and followed the directions on:
http://wiki.rubyonrails.org/rails/pages/SaltedLoginGeneratorQuickstart
I get the following problem (see below) when I run ''rake
test_functional''
any suggestions?
cheers,
adam
/usr/bin/ruby -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.6.0/lib/rake/rake_test_loader.rb"
"test/functional/user_controller_test.rb"
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.6.0/lib/rake/rake_test_loader
Started
..F.....F
Finished in 0.997528 seconds.
1) Failure:
test_change_password(UserControllerTest)
[/usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/deprecated_assertions.rb:23:in
`assert_session_has''
./test/functional/user_controller_test.rb:186:in
`do_change_password''
./test/functional/user_controller_test.rb:194:in
`test_change_password'']:
<"user"> is not in the session
<#<ActionController::TestSession:0xb7b09cc0
@attributes={"user"=>nil, "flash"=>{}}>>
2) Failure:
test_signup(UserControllerTest)
[/usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/assertions.rb:63:in
`assert_response''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/deprecated_assertions.rb:13:in
`assert_redirect''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/deprecated_assertions.rb:98:in
`assert_redirect_url''
./test/functional/user_controller_test.rb:37:in `do_test_signup''
./test/functional/user_controller_test.rb:145:in `test_signup'']:
Expected response to be a <:redirect>, but was <200>
9 tests, 259 assertions, 2 failures, 0 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby -Ilib:test
"/usr/lib/ruby/ge...]