Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3798144
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:31:24+00:00 2026-05-19T13:31:24+00:00

I have a functional test which fails when I run it normally. I have

  • 0

I have a functional test which fails when I run it normally. I have the ruby-debug gem installed, so I inserted a “debugger” line into the controller method and when I run the test it breaks on that line. I would then step through the remainder of the function, but it got to the exit point and it was correct (and then the test passed). After that I ran it again, and immediately when the debugger started I just hit “c” for continue. The test passed.

Does anyone have some suggestions on how to approach a problem like this? Are there some common mistakes that can lead to this situation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:31:25+00:00Added an answer on May 19, 2026 at 1:31 pm

    I’m not completely sure because I don’t have access to the code you are testing. However, I once had a problem where there was data that took time outside of the controller. (For instance an ajax call on the page, or something using an event queue)
    The debug just added enough of a delay that the data was there when I wanted to check it, but it wasn’t there if the debugger wasn’t included.

    Would this sound like something going on in this test?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a JUnit test for a private function which is returning String.
I have recently completed a detailed investigation regarding GP functional test automation possibilities with
I have function: char *zap(char *ar) { char pie[100] = INSERT INTO test (nazwa,
I'm writing an own container class and have run into a problem I can't
I have two Slackware Linux systems on which the POSIX semaphore sem_open() call fails
I have a PHPUnit Test which validates the output of a logfile with a
suppose I have a function: function test(){} test.prototype.method01=function(){ //do something } test.prototype.method02=function(){ //how can
I have just come across this code: function test(){ //... if ( $profilerule ==
I have this (simplification): $(li).click(function{alert(test);}); <li> <input> </li> What's the best way to bind
I have a function that return [[]] , and I want to test the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.