TodosFinder#execute failure
Job #683963118 failed for 3c0a5589:
TodosFinder#execute #execute filtering when filtering by target id returns the expected todos for the target
Failure/Error: expect(todos).to match_array([todo1])
expected collection contained: [#<Todo id: 64, user_id: 934, project_id: 643, target_id: 60, target_type: "Issue", author_id: 935, a...ed_at: "2020-08-13 04:10:17", note_id: nil, commit_id: nil, group_id: nil, resolved_by_action: nil>]
actual collection contained: [#<Todo id: 64, user_id: 934, project_id: 643, target_id: 60, target_type: "Issue", author_id: 935, a...d_at: "2020-08-13 04:10:17", note_id: nil, commit_id: nil, group_id: 1026, resolved_by_action: nil>]
the extra elements were: [#<Todo id: 65, user_id: 934, project_id: 644, target_id: 60, target_type: "MergeRequest", author_id:...d_at: "2020-08-13 04:10:17", note_id: nil, commit_id: nil, group_id: 1026, resolved_by_action: nil>]
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:97:in `block in <module:Support>'
# ./vendor/ruby/2.6.0/gems/rspec-support-3.9.2/lib/rspec/support.rb:106:in `notify_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:40:in `handle_failure'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:27:in `with_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
# ./vendor/ruby/2.6.0/gems/rspec-expectations-3.9.1/lib/rspec/expectations/expectation_target.rb:65:in `to'
# ./spec/finders/todos_finder_spec.rb:240:in `block (6 levels) in <top (required)>'
Edited by charlie ablett