diff options
Diffstat (limited to 'test/unit/version_test.rb')
-rw-r--r-- | test/unit/version_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb index 2cab5598f..3195ab614 100644 --- a/test/unit/version_test.rb +++ b/test/unit/version_test.rb @@ -33,8 +33,8 @@ class VersionTest < ActiveSupport::TestCase def test_invalid_effective_date_validation v = Version.new(:project => Project.find(1), :name => '1.1', :effective_date => '99999-01-01') assert !v.save - assert_equal I18n.translate('activerecord.errors.messages.not_a_date'), - v.errors[:effective_date].to_s + assert_include I18n.translate('activerecord.errors.messages.not_a_date'), + v.errors[:effective_date] end def test_progress_should_be_0_with_no_assigned_issues |