summaryrefslogtreecommitdiffstats
path: root/test/functional/account_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-26 09:58:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-26 09:58:06 +0000
commit56ba4d02097a6eab3135281330c7574688fb0e56 (patch)
treee40f131cba603c876192e6d78e044c497b7c9fd5 /test/functional/account_controller_test.rb
parentfe22c77b593ee7451268753fcef95066eb645913 (diff)
downloadredmine-56ba4d02097a6eab3135281330c7574688fb0e56.tar.gz
redmine-56ba4d02097a6eab3135281330c7574688fb0e56.zip
No need to use custom host name in these tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@15285 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/account_controller_test.rb')
-rw-r--r--test/functional/account_controller_test.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index c3f7d6812..ad187b293 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -326,10 +326,8 @@ class AccountControllerTest < ActionController::TestCase
ActionMailer::Base.deliveries.clear
assert_difference 'ActionMailer::Base.deliveries.size' do
assert_difference 'Token.count' do
- with_settings :host_name => 'mydomain.foo', :protocol => 'http' do
- post :lost_password, :mail => 'JSmith@somenet.foo'
- assert_redirected_to '/login'
- end
+ post :lost_password, :mail => 'JSmith@somenet.foo'
+ assert_redirected_to '/login'
end
end
@@ -338,7 +336,7 @@ class AccountControllerTest < ActionController::TestCase
assert_equal 'recovery', token.action
assert_select_email do
- assert_select "a[href=?]", "http://mydomain.foo/account/lost_password?token=#{token.value}"
+ assert_select "a[href=?]", "http://localhost:3000/account/lost_password?token=#{token.value}"
end
end