views:

31

answers:

0

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 on 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 the debugger off though, the test executes as though the collection is empty. Has anyone had a problem like this/what did you do to fix it?