Commit bf5fdb19 authored by jplang's avatar jplang

Test failure.

git-svn-id: https://svn.redmine.org/redmine/trunk@16195 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 89842aa1
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment