On 23 Feb 2009, at 17:09, schtieF wrote:

>
> Hi,
>
> i have a very strange and serious problem. In my test i create an
> object with (ActiveRecord::Base).create (i also tried .new and .save!)
> everything seems to be fine, assert *.errors.empty? is ok
> but there is ne entry in the database.

>
>
> I used the debugger command and put it right after create/save and
> printed out the local variables.

Are you checking by looking at the database with whatever command line  
tool your db provides ?
tests run inside a transaction and by default other connections can't  
see uncommitted changes from another transaction.

Fred
> The strange thing is, that i see a database id in the object, so it
> must be in the db cause its an autoincrement field.
>
> I also double-checked my database.yml settings for test, tried to
> refer to a non existing db and got the right error.
>
> Im really desperate on this please help
>
> >


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

Reply via email to