If I run all my tests using rake test, they all work. However, when I run rake test:functionals, some functional tests fail on some of my assertions? If I run the individual rb file in which the failing tests appear, they work! What is different between these ways of running functional tests? I've been scratching my head over this one for ages! Cheers.
on 2006-12-23 16:53
on 2006-12-23 23:27
RichText wrote: > Whenever I've had a problem like this it's been to do with the loading of fixtures -- and not loading all of them that were needed into a functional test (meaning the state of the items in the db depended on which tests were run prior to it, and in which order). Have a look at the functionals that are failing and make sure you are loading all the fixtures that are needed, including any tables they depend on. HTH Chris
on 2006-12-23 23:58
Dear Chris, Thanks for the tip - I've sorted it now. I thought it would be something obvious like this. Cheers!
on 2006-12-24 01:56
i unsubscribed months ago and started getting rails email again today this has happened once before. wtf? -- Elliot T. http://curi.us/dialogs/
on 2006-12-25 09:45
On 12/23/06, Elliot T. <firstname.lastname@example.org> wrote: > > i unsubscribed months ago and started getting rails email again today > > this has happened once before. > > wtf? > > > -- Elliot T. > http://curi.us/dialogs/ Sorry for the inconvenience, you can unsubscribe by sending email to email@example.com -- Rick O. http://weblog.techno-weenie.net http://mephistoblog.com
on 2007-12-22 00:48
I've got similar problems and while I'm glad Chris' were fixed I'm a little curious why they worked okay when run with ruby. Do fixtures get reloaded for each functional test method (like they are in unit tests)? I'd hope so. On Dec 23 2006, 1:58 pm, RichText <firstname.lastname@example.org>