debugger changes test behavior

Discussion in 'Ruby' started by Michel Pigassou, Mar 5, 2014.

  1. 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
     
    Michel Pigassou, Mar 5, 2014
    #1
    1. Advertisements

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

    Cheers

    robert
     
    Robert Klemme, Mar 5, 2014
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.