- 'test/helpers/application_helper_test.rb'
- 'test/mocks/open_id_authentication_mock.rb'
- 'test/unit/lib/redmine/helpers/calendar_test.rb'
- - 'test/unit/time_entry_test.rb'
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
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
+ with_settings :timelog_required_fields => ['issue_id', 'comments'] do
entry = TimeEntry.new(:project => Project.find(1), :spent_on => Date.today, :author => User.find(1), :user => User.find(1), :activity => TimeEntryActivity.first, :hours => 1)
assert !entry.save