All Integration Tests Fail When They Shouldn't

Whenever I run the integration tests I find that if one test fails they all fail. This occurs even if one or more of the tests should succeed. Tried various solutions like clearing out the cache, checking to see if the tests are written correctly, double checking the routes used for testing, but it does not resolve the issue. Below are the contents of site_navigation_test.rb:

Did you migrate in test environment?

Dheeraj Kumar