summaryrefslogtreecommitdiffstats
path: root/redmine/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-07-30 10:47:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-07-30 10:47:02 +0000
commit18ee1fef4172ecb444f1abe6d533d042a7ac8dd9 (patch)
treed2fc7e73ecc5ac60010d07dd30278d2dc8042417 /redmine/test
parent2a96f56956d36ae02b2b6b326fe404499ef93b8b (diff)
downloadredmine-18ee1fef4172ecb444f1abe6d533d042a7ac8dd9.tar.gz
redmine-18ee1fef4172ecb444f1abe6d533d042a7ac8dd9.zip
notice messages translation
git-svn-id: http://redmine.rubyforge.org/svn/trunk@17 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'redmine/test')
-rw-r--r--redmine/test/integration/account_test.rb9
-rw-r--r--redmine/test/integration/admin_test.rb2
2 files changed, 8 insertions, 3 deletions
diff --git a/redmine/test/integration/account_test.rb b/redmine/test/integration/account_test.rb
index 4f5240b68..88c75361d 100644
--- a/redmine/test/integration/account_test.rb
+++ b/redmine/test/integration/account_test.rb
@@ -39,10 +39,15 @@ class AccountTest < ActionController::IntegrationTest
post "account/change_password", :password => 'jsmith', :new_password => "hello", :new_password_confirmation => "hello2"
assert_response :success
+ assert_template "account/my_account"
assert_tag :tag => "div", :attributes => { :class => "errorExplanation" }
-
+
+ post "account/change_password", :password => 'jsmithZZ', :new_password => "hello", :new_password_confirmation => "hello"
+ assert_redirected_to "account/my_account"
+ assert_equal 'Wrong password', flash[:notice]
+
post "account/change_password", :password => 'jsmith', :new_password => "hello", :new_password_confirmation => "hello"
- assert_response :success
+ assert_redirected_to "account/my_account"
log_user('jsmith', 'hello')
end
diff --git a/redmine/test/integration/admin_test.rb b/redmine/test/integration/admin_test.rb
index 6602d1c15..0241ae8da 100644
--- a/redmine/test/integration/admin_test.rb
+++ b/redmine/test/integration/admin_test.rb
@@ -47,7 +47,7 @@ class AdminTest < ActionController::IntegrationTest
assert_template "projects/add"
post "projects/add", :project => { :name => "blog", :description => "weblog", :is_public => 1}
assert_redirected_to "admin/projects"
- assert_equal 'Project was successfully created.', flash[:notice]
+ assert_equal 'Successful creation.', flash[:notice]
project = Project.find_by_name("blog")
assert_kind_of Project, project