diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-14 11:33:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-14 11:33:51 +0000 |
commit | 69d7f920f525f68355213c313be23b404d0384c6 (patch) | |
tree | 84608b62bae7e9b9d79be1d81091e638e3fc398d /test | |
parent | 9206d077d4603c6ffc2d01ae152f129c6e88df6d (diff) | |
download | redmine-69d7f920f525f68355213c313be23b404d0384c6.tar.gz redmine-69d7f920f525f68355213c313be23b404d0384c6.zip |
Test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@16195 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/time_entry_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb index 78f7f5e10..111713305 100644 --- a/test/unit/time_entry_test.rb +++ b/test/unit/time_entry_test.rb @@ -18,6 +18,8 @@ require File.expand_path('../../test_helper', __FILE__) class TimeEntryTest < ActiveSupport::TestCase + include Redmine::I18n + fixtures :issues, :projects, :users, :time_entries, :members, :roles, :member_roles, :trackers, :issue_statuses, @@ -174,6 +176,7 @@ class TimeEntryTest < ActiveSupport::TestCase end def test_create_with_required_issue_id_and_comment_should_be_validated + set_language_if_valid 'en' with_settings :timelog_required_fields => ['issue_id' , 'comments'] do entry = TimeEntry.new(:project => Project.find(1), :spent_on => Date.today, :user => User.find(1), :activity => TimeEntryActivity.first, :hours => 1) |