summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-05 12:17:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-05 12:17:29 +0000
commit9f6496b0bccb50deb65c162e6c51f4ad955d6601 (patch)
treef2ddd5004d4eae54fe5f618fed3fbb94b8dd25b0 /test/integration
parentd57fbc9512ccda7253914f2e5b0e5ce2d181a31e (diff)
downloadredmine-9f6496b0bccb50deb65c162e6c51f4ad955d6601.tar.gz
redmine-9f6496b0bccb50deb65c162e6c51f4ad955d6601.zip
Fixed registration form broken by r8479.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8782 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/account_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index 53b40aad1..8cf105f2e 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -103,8 +103,8 @@ class AccountTest < ActionController::IntegrationTest
assert_response :success
assert_template 'account/register'
- post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar"},
- :password => "newpass", :password_confirmation => "newpass"
+ post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar",
+ :password => "newpass", :password_confirmation => "newpass"}
assert_redirected_to '/my/account'
follow_redirect!
assert_response :success
@@ -119,8 +119,8 @@ class AccountTest < ActionController::IntegrationTest
def test_register_with_manual_activation
Setting.self_registration = '2'
- post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar"},
- :password => "newpass", :password_confirmation => "newpass"
+ post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar",
+ :password => "newpass", :password_confirmation => "newpass"}
assert_redirected_to '/login'
assert !User.find_by_login('newuser').active?
end
@@ -129,8 +129,8 @@ class AccountTest < ActionController::IntegrationTest
Setting.self_registration = '1'
Token.delete_all
- post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar"},
- :password => "newpass", :password_confirmation => "newpass"
+ post 'account/register', :user => {:login => "newuser", :language => "en", :firstname => "New", :lastname => "User", :mail => "newuser@foo.bar",
+ :password => "newpass", :password_confirmation => "newpass"}
assert_redirected_to '/login'
assert !User.find_by_login('newuser').active?