rubyonrailsin

A Ruby and Rails talk

Thursday, March 18, 2010


[Rails] Re: Records created while tests are running are not being saved.

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

On Mar 18, 10:13 am, Steven Hilton <mshilt...@gmail.com> wrote:
> On Thu, Mar 18, 2010 at 6:08 AM, Vikrant Chaudhary <nas...@gmail.com> wrote:
>
> Tests are ran inside a transaction and are rolled back after each
> test. In a separate process (i.e. ./script/dbconsole) you will not see
> the data create from a test, even if you pause execution.

you can see the data during the test if you alter the transaction
isolation level to read uncommitted (at least you can with mysql)

Fred

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive