Skip to content

Commit

Permalink
working on random failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Mar 15, 2024
1 parent a4fd664 commit ee0b74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/issue_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_disabled_auto_assigned_to
end

def test_assigned_to_should_add_watcher
user = users :users_001
user = users :users_003
user.pref.auto_watch_on = ['issue_assigned']
user.pref.save
issue = Issue.new author_id: user.id, project_id: 1, tracker_id: 1, assigned_to_id: user.id, subject: 'test_assigned_should_add_watcher'
Expand All @@ -183,7 +183,7 @@ def test_assigned_to_with_group_should_not_add_watcher
Member.create! project_id: 1, principal: group, role_ids: [1]

with_settings issue_group_assignment: '1' do
issue = Issue.new author_id: 1, project_id: 1, tracker_id: 1, assigned_to_id: group.id, subject: 'test_assigned_should_add_watcher'
issue = Issue.new author_id: 3, project_id: 1, tracker_id: 1, assigned_to_id: group.id, subject: 'test_assigned_should_add_watcher'

assert_no_difference 'Watcher.count' do
assert_save issue
Expand Down

0 comments on commit ee0b74f

Please sign in to comment.