Am 19.02.2006 um 15:56 schrieb Manuel Holtgrewe:

> Hi
>
> I am getting a kind of mysterious error when deleting a group in my
> unit tests. I get this error when calling the "destroy" action in my
> controller, so the only different thing is that it is called from a
> unit test instead of running in Webrick.
>
> I am calling Group.find(params[:id]).destroy in my controller. Group
> has_and_belongs_to_many User and Role objects. The same code does not
> give errors when running as a component but it does when running as
> an Engine. Thus, I suspect something is breaking along the way.
>
> Has anyone else experienced a problem like this?

Never mind. I solved this by making sure that my User model file was  
only included once. I tried to run the same tests as a component  
would require and did not read the documentation of Engines before.

Regards,

Manuel
_______________________________________________
engine-developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org

Reply via email to