Rails 3 engines testing

Hi,

does anyone can help me by telling how you can properly test rails 3
engines? Since engines don’t necessarily have db connections on its own,
how can you test your models?

I could use a test database, but how do you configure you test then to
create and use that connection?

Thank you in advance

Try Jose Valim’s EngineX (GitHub - josevalim/enginex: An executable which creates a bare Rails 3 engine (which is used in Crafting Rails Applications)). This
works really well for me.

→ Eric