Skip to content

Commit de6aae4

Browse files
Fix linter
1 parent 13b7161 commit de6aae4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/system/timer_sessions_management_test.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ class TimerSessionsManagementTest < ApplicationSystemTestCase
1414
login_user('admin', 'admin')
1515
User.current = User.find(1)
1616
# User.current.preference.update(time_zone: 'Tijuana')
17-
@timer_sessions = FactoryBot.create_list(:timer_session, 3,
18-
:with_issues,
19-
:with_time_entries,
20-
user: User.current)
21-
@timer_sessions << FactoryBot.create(:timer_session, :with_issues, :with_time_entries, user: User.current, comments: nil)
17+
session_options = [:with_issues, :with_time_entries, { 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))
2220

2321
visit timer_sessions_path
2422
end

0 commit comments

Comments
 (0)