1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-27 10:51:15 +00:00

Test failure.

git-svn-id: http://svn.redmine.org/redmine/trunk@16195 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2017-01-14 11:33:51 +00:00
parent 9206d077d4
commit 69d7f920f5

View File

@ -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)