Project

General

Profile

Actions

Bug #28641

open

Fix mocha deprecation warnings in report_importer

Added by Tomer Brisker almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Difficulty:
Triaged:
No
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 1 (0 open1 closed)

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

Also available in: Atom PDF