I had a similar error when using Cucumber functions when upgrading my project from Rails 2.3.8 to 3.2.2 . I almost don't know that you can find out the stack trace of this error.
The real problem, in my case, was the double inclusion of a library called rest-client, once as a plugin and once as a gem. This was in my Gemfile as well as in my vendor / plugins directory. Perhaps you can quickly check if there is anything like this in your project.
I found this because of the tedious process of using "raise" in several places in my code. In your way of executing the rspec instruction that causes this error, put the invocation method calls in different places, for example.
raise StandardError, 'code did reach here'
This, with some logical search logic, will help you get closer to the criminal code. Once you are there, use the following construct to get the stack trace.
begin
This worked for me, at least hope it helps you.
source share