Ok folks, so I have a controller test that passes on the first run through, but if I run the test again it fails as changes made to the database within the test have been committed. Surely even if though there is a transaction block which is committed within the commands that the test executes, it will be within the transaction wrapping the whole test, and so will be rolled back when the test completes? If this is the case, why is it not happening here? Thanks! Matt -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---