Weird problem cucumber behaving differently when run with the debugger
Posted
by James
on Stack Overflow
See other posts from Stack Overflow
or by James
Published on 2010-04-22T22:17:54Z
Indexed on
2010/04/22
22:23 UTC
Read the original article
Hit count: 305
When I run a cucumber test it executes the code thinking that a collection obtained inside of a controller via a has_many
relationship on a model is empty when it isn't. I ran this same test but with the debugger turned and a breakpoint before the collection is used. When I print collection
in the debugger at this breakpoint the collection is as it should be (not empty). Then I continue
and the test executes as it should. With no debugger and breakpoints though, the test exectues as though the collection is empty. Has anyone had a problem like this/what did you do to fix it?
© Stack Overflow or respective owner