Flaky spec in `spec/controllers/projects/merge_requests/diffs_controller_spec.rb` | Projects::MergeRequests::DiffsController GET show with default params when note is a legacy diff note serializes merge request diff collection
Job #840126120 failed for f00500d1:
Trace
Failures:
1) Projects::MergeRequests::DiffsController GET show with default params when note is a legacy diff note serializes merge request diff collection
Failure/Error:
target.to receive_new.and_wrap_original do |method, *original_args|
method.call(*original_args).tap do |instance|
yield(instance)
end
end
(DiffsSerializer (class)).new(*(any args))
expected: 1 time with any arguments
received: 0 times with any arguments
# ./spec/support/helpers/next_instance_of.rb:22:in `stub_new'
# ./spec/spec_helper.rb:354:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:345:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:341:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:341:in `block (2 levels) in <top (required)>'