@@ -18,6 +18,8 | |||
|
18 | 18 | require File.expand_path('../../test_helper', __FILE__) |
|
19 | 19 | |
|
20 | 20 | class TimeEntryTest < ActiveSupport::TestCase |
|
21 | include Redmine::I18n | |
|
22 | ||
|
21 | 23 | fixtures :issues, :projects, :users, :time_entries, |
|
22 | 24 | :members, :roles, :member_roles, |
|
23 | 25 | :trackers, :issue_statuses, |
@@ -174,6 +176,7 class TimeEntryTest < ActiveSupport::TestCase | |||
|
174 | 176 | end |
|
175 | 177 | |
|
176 | 178 | def test_create_with_required_issue_id_and_comment_should_be_validated |
|
179 | set_language_if_valid 'en' | |
|
177 | 180 | with_settings :timelog_required_fields => ['issue_id' , 'comments'] do |
|
178 | 181 | entry = TimeEntry.new(:project => Project.find(1), :spent_on => Date.today, :user => User.find(1), :activity => TimeEntryActivity.first, :hours => 1) |
|
179 | 182 |
General Comments 0
You need to be logged in to leave comments.
Login now