Skip to content

Commit 5e0aa91

Browse files
Fix system spec
1 parent 0511c04 commit 5e0aa91

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/system/timer_sessions_management_test.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ class TimerSessionsManagementTest < ApplicationSystemTestCase
1414
login_user('admin', 'admin')
1515
User.current = User.find(1)
1616
# User.current.preference.update(time_zone: 'Tijuana')
17-
session_options = { with_issues: true, with_time_entries: true, user: User.current }
18-
@timer_sessions = FactoryBot.create_list(:timer_session, 3, session_options)
19-
@timer_sessions << FactoryBot.create(:timer_session, session_options.merge(comments: nil))
17+
@timer_sessions = FactoryBot.create_list(:timer_session, 3, :with_issues, :with_time_entries, user: User.current)
18+
@timer_sessions.last.update!(comments: nil)
2019
visit timer_sessions_path
2120
end
2221

0 commit comments

Comments
 (0)