]> source.dussan.org Git - redmine.git/commitdiff
Reverted changes made to tests for r1893 (#11691).
authorEtienne Massip <etienne.massip@gmail.com>
Fri, 24 Aug 2012 21:41:52 +0000 (21:41 +0000)
committerEtienne Massip <etienne.massip@gmail.com>
Fri, 24 Aug 2012 21:41:52 +0000 (21:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10235 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/account_controller_test.rb

index f48e4b3a62a9f72c1a8bf5bcca31b0c89957b05f..7b5a449e5b6ff17b3a3d7d81f60cbcf45aaae278 100644 (file)
@@ -33,12 +33,12 @@ class AccountControllerTest < ActionController::TestCase
 
   def test_login_should_redirect_to_back_url_param
     # request.uri is "test.host" in test environment
-    post :login, :username => 'jsmith', :password => 'jsmith', :back_url => 'http%3A%2F%2Ftest.host%2Fissues%2Fshow%2F1'
+    post :login, :username => 'jsmith', :password => 'jsmith', :back_url => 'http://test.host/issues/show/1'
     assert_redirected_to '/issues/show/1'
   end
 
   def test_login_should_not_redirect_to_another_host
-    post :login, :username => 'jsmith', :password => 'jsmith', :back_url => 'http%3A%2F%2Ftest.foo%2Ffake'
+    post :login, :username => 'jsmith', :password => 'jsmith', :back_url => 'http://test.foo/fake'
     assert_redirected_to '/my/page'
   end