Skip to content

Commit ee9a5a9

Browse files
Update specs
1 parent de6aae4 commit ee9a5a9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

test/system/timer_sessions_management_test.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +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-
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))
20-
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))
2120
visit timer_sessions_path
2221
end
2322

test/unit/timer_session_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class TimerSessionTest < ActiveSupport::TestCase
3737
test 'comment_present' do
3838
assert @timer_session.valid?
3939
@timer_session.comments = nil
40-
assert_not @timer_session.valid?
40+
assert @timer_session.valid?
4141
end
4242

4343
test 'issues_selected' do

0 commit comments

Comments
 (0)