Skip to content
Browse files

Skip the tests for PasswordsController#after_sending_reset_password_i…

…nstructions_path_for hook
  • Loading branch information...
1 parent ddec656 commit 873d8dcf8a2f12c2b575daaa1c6706a7f46c690e @0x000000 committed Mar 29, 2012
Showing with 0 additions and 16 deletions.
  1. +0 −15 test/integration/recoverable_test.rb
  2. +0 −1 test/rails_app/config/routes.rb
View
15 test/integration/recoverable_test.rb
@@ -32,12 +32,6 @@ def reset_password(options={}, &block)
click_button 'Change my password'
end
- def redefine_after_reset_password_path
- PasswordsController.send :define_method, :after_sending_reset_password_instructions_path_for do |r_name|
- '/any_url_you_wish'
- end
- end
-
test 'authenticated user should not be able to visit forgot password page' do
sign_in_as_user
assert warden.authenticated?(:user)
@@ -56,15 +50,6 @@ def redefine_after_reset_password_path
assert_contain 'You will receive an email with instructions about how to reset your password in a few minutes.'
end
- test 'programmers should be able to redefine redirect path after user resets password' do
- create_user
- redefine_after_reset_password_path
- request_forgot_password
-
- assert_response :success
- assert_template 'home/index'
- end
-
test 'not authenticated user with invalid email should receive an error message' do
request_forgot_password do
fill_in 'email', :with => 'invalid.test@test.com'
View
1 test/rails_app/config/routes.rb
@@ -20,7 +20,6 @@
map.admin_root '/admin_area/home', :controller => "admins", :action => "index"
map.connect '/sign_in', :controller => "sessions", :action => "new"
- map.connect '/any_url_you_wish', :controller => 'home', :action => 'index'
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end

0 comments on commit 873d8dc

Please sign in to comment.
Something went wrong with that request. Please try again.