I'm in the process of ugrading my Rails 3.2 app to Rails 4.1. (I'm using rbx-2.2.10)
I've got to the stage where I'm running my specs, but they fail whenever they query the db and I get this error:
LocalJumpError: unexpected return
I tried to investigate in my console and I get the same issue when running a query.
I have read a few answers such as this one:
Unexpected Return (LocalJumpError)
about rails not allowing return calls inside of blocks which are not inside closing methods, but the code that is failing does not have such code.