diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-21 11:04:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-21 11:04:50 +0000 |
commit | fe28193e4eb9af2dc5262535a29ffde5249568fc (patch) | |
tree | bd4cf3a9fbada98e58e510ca0e25c42bf00676a7 /test/unit/issue_test.rb | |
parent | 9a986ac0a51fe844eee816325e6a6d4122136d9a (diff) | |
download | redmine-fe28193e4eb9af2dc5262535a29ffde5249568fc.tar.gz redmine-fe28193e4eb9af2dc5262535a29ffde5249568fc.zip |
Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r-- | test/unit/issue_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index bfe29f552..7013d2c0d 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -47,15 +47,15 @@ class IssueTest < Test::Unit::TestCase assert issue.available_custom_fields.include?(field) # No value for the custom field assert !issue.save - assert_equal 'activerecord_error_invalid', issue.errors.on(:custom_values) + assert_equal I18n.translate('activerecord.errors.messages.invalid'), issue.errors.on(:custom_values) # Blank value issue.custom_field_values = { field.id => '' } assert !issue.save - assert_equal 'activerecord_error_invalid', issue.errors.on(:custom_values) + assert_equal I18n.translate('activerecord.errors.messages.invalid'), issue.errors.on(:custom_values) # Invalid value issue.custom_field_values = { field.id => 'SQLServer' } assert !issue.save - assert_equal 'activerecord_error_invalid', issue.errors.on(:custom_values) + assert_equal I18n.translate('activerecord.errors.messages.invalid'), issue.errors.on(:custom_values) # Valid value issue.custom_field_values = { field.id => 'PostgreSQL' } assert issue.save |