debugger changes test behavior

  • Thread starter Michel Pigassou
  • Start date
M

Michel Pigassou

Hi.

Have you ever had this problem where your test fails where it should succeed, and you just add a debugger in your controller or model, and then it succeeds?

I could observe this behavior under different Ruby versions, 1.9.3 and 2.0.0, with Rails 3 and 4.
I have no idea what could cause this, but since I have been noticing this many times I guess I'm not the only one. Am I?

Michel
 
R

Robert Klemme

Have you ever had this problem where your test fails where it should
succeed, and you just add a debugger in your controller or model, and
then it succeeds?

I could observe this behavior under different Ruby versions, 1.9.3
and 2.0.0, with Rails 3 and 4. I have no idea what could cause this,
but since I have been noticing this many times I guess I'm not the
only one. Am I?

That could be anything, for example timing in multithreaded applications
or the debugger changing meta programming effects.

Cheers

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top