Forum: Ruby on Rails Rails Unit test Problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
588b8a8cef3c8231ff4cf6948d5e1991?d=identicon&s=25 Luciano Broussal (Guest)
on 2006-01-17 13:06
(Received via mailing list)
Hi all,

I have a problem with unit test database data reload.

I have several test_xxx function in my ruby unit test file

I would like to know why xxxx.yml containing test data are load only 1
for all the test while specification say it done for before each test

Thus my test_xxx are dependant of previous test

This is a mistake, because the specs say the test data  are reload
each test_method?

I would like you help to solve this problem?

Is it a rails bug, strange because specs are clean on this subject?


42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2006-01-17 13:09
(Received via mailing list)
I'm too tired to get into it, but you're probably having issues with
transactional fixtures.  Check out to get
a good understanding of the testing options in Rails.

588b8a8cef3c8231ff4cf6948d5e1991?d=identicon&s=25 Luciano Broussal (Guest)
on 2006-01-17 23:02
(Received via mailing list)
Thank you for your successful help.


On 1/17/06, Pat Maddox <> wrote:
> >
> >
> >

Luciano Broussal
e-nover consulting

Tél: 06 61 84 51 00
Fax: 04 92 72 65 91
This topic is locked and can not be replied to.