Rspec tests passing individually but passing on a whole

Hi All,

I found a weird thing happening with rspec tests. One of the tests is passing individually but failing when run all the tests in the application. Even to debug that, i have to run the whole tests which is taking more time to run.

Anybody come across such thing? Any idea what’s is going inside?

Any help will be appreciated.

Thanks in advance!

Presumably some hangover from one test to another. Work out why the
test is failing when you run them all then work out why it is not
failing when you run just it. Then you will know the answer. Don't
forget to tell us the result so we can all learn. See the Rails
Guide on debugging to see techniques that can be useful for debugging
the code to find out what is going on, in order to understand what is
happening in the two cases.