Project

General

Profile

Bug #28641

Fix mocha deprecation warnings in report_importer

Added by Tomer Brisker 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Mocha deprecation warning at app/services/report_importer.rb:54:in `join': #<Mock:Object> was instantiated in one test but it is receiving invocations within another test. This can lead to unintended interactions between tests and hence unexpected test failures. Ensure that every test correctly cleans up any state that it introduces. A Mocha::StubbingError will be raised in this scenario in the future.
Mocha deprecation warning at app/services/report_importer.rb:56:in `block in scan': #<Mock:Object> was instantiated in one test but it is receiving invocations within another test. This can lead to unintended interactions between tests and hence unexpected test failures. Ensure that every test correctly cleans up any state that it introduces. A Mocha::StubbingError will be raised in this scenario in the future.


Related issues

Related to Foreman - Refactor #28638: require mocha 1.11+Closed

History

#1 Updated by Tomer Brisker 9 months ago

#2 Updated by Tomer Brisker 9 months ago

#3 Updated by Tomer Brisker 9 months ago

Also available in: Atom PDF