I'm working a old project with some test-unit (3.0.9) and mocha (1.1.0). For the moment I'm working with Rails 4.1.10 (with ruby 2.2.2p95,) and all test pass, but when trying to switch to Rails 4.2.1 many tests fails. It seems that tests are not "stable" any more.
For example is it possible that 2 tests in the same test file can fail when they are run together? If one or the other is skipped test pass. Otherwise I get "Mocha::ExpectationError: unexpected invocation: FileApplication(id: integer........)". I get essentially "unexpected invocation" errors.
I would like to know where I can look to fixe this issue? In the test_helper?
Thanks a lot in advance for your help.