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 time for all the test while specification say it done for before each test method. Thus my test_xxx are dependant of previous test This is a mistake, because the specs say the test data are reload before 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? Regards. Croco -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/f6442f1a/attachment.html
I''m too tired to get into it, but you''re probably having issues with transactional fixtures. Check out http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting to get a good understanding of the testing options in Rails. Pat On 1/17/06, Luciano Broussal <luciano.broussal@gmail.com> wrote:> 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 time > for all the test while specification say it done for before each test > method. > > Thus my test_xxx are dependant of previous test > > This is a mistake, because the specs say the test data are reload before > 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? > > Regards. > > Croco > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Thank you for your successful help. Croco On 1/17/06, Pat Maddox <pergesu@gmail.com> wrote:> I''m too tired to get into it, but you''re probably having issues with > transactional fixtures. Check out > http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting to get > a good understanding of the testing options in Rails. > > Pat > > > On 1/17/06, Luciano Broussal <luciano.broussal@gmail.com> wrote: > > 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 time > > for all the test while specification say it done for before each test > > method. > > > > Thus my test_xxx are dependant of previous test > > > > This is a mistake, because the specs say the test data are reload before > > 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? > > > > Regards. > > > > Croco > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- ---------------------------------- Luciano Broussal e-nover consulting http://www.e-nover.com T?l: 06 61 84 51 00 Fax: 04 92 72 65 91