Ruby Forum Ruby on Rails > Test Unit can't change data

Posted by Rails Terrorist (malioboro)
on 09.05.2008 04:48
I have converted my engine from myISAM to InnoDB, the matter now in Test
Unit, the table cant do any changes for CRUD. Any advice? But if I
convert it back, the CRUD can run very smooth and data value in
attributes changed.

Reinhart
http://teapoci.blogspot.com
Posted by Frederick Cheung (Guest)
on 09.05.2008 08:45
(Received via mailing list)
On May 9, 3:48 am, Rails Terrorist <rails-mailing-l...@andreas-s.net>
wrote:
> I have converted my engine from myISAM to InnoDB, the matter now in Test
> Unit, the table cant do any changes for CRUD. Any advice? But if I
> convert it back, the CRUD can run very smooth and data value in
> attributes changed.
>
All changes made by a unit test are rolled back after the test (and
default transaction isolation levels mean that you can't see changes
made by the test from another connection to mysql.