[Rails] Re: Transaction not rolled back in Functional Test

2010-02-11 Thread Frederick Cheung
On Feb 10, 9:17 pm, Homer Simpson li...@ruby-forum.com wrote: However, when I run my functional test this the I do a user.find_by_name after the post is executed and it comes back with the user (should come back nil). I see the exception logged properly but the transaction just is not

[Rails] Re: Transaction not rolled back in Functional Test

2010-02-11 Thread Homer Simpson
Frederick Cheung wrote: On Feb 10, 9:17�pm, Homer Simpson li...@ruby-forum.com wrote: Tests are special, because each test already runs within a transaction. In rails 2.3 Active Record should be using savepoints as a substitute for actual nested transactions - do your logs show that

Re: [Rails] Re: Transaction not rolled back in Functional Test

2010-02-11 Thread Colin Law
On 11 February 2010 11:34, Homer Simpson li...@ruby-forum.com wrote: Frederick Cheung wrote: On Feb 10, 9:17�pm, Homer Simpson li...@ruby-forum.com wrote: Tests are special, because each test already runs within a transaction. In rails 2.3 Active Record should be using savepoints as a