# Testing the Engines plugin

**URL:** <https://www.ruby-forum.com/t/testing-the-engines-plugin/67632>\
**Category:** Engines\
**Created:** [February 14, 2006, 2:38am UTC](https://www.ruby-forum.com/t/testing-the-engines-plugin/67632 "2006-02-14T02:38:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitr0z](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ba9def/32.png) [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Post date:** [February 14, 2006, 2:38am UTC](https://www.ruby-forum.com/t/testing-the-engines-plugin/67632/1 "2006-02-14T02:38:52Z")

</div>

Hello again,

If you’re interested in helping test the Engines plugin, I’ve created  
a simple test project to act as a base for such tests. This project  
can be found in

[http://opensvn.csie.org/rails\_engines/applications/engines\_test](http://opensvn.csie.org/rails_engines/applications/engines_test)

Essentially it’s a very simple Rails project which includes a number  
of externals and test engines. Since it would be very difficult to  
test the behaviour of the Engines plugin without it being situated  
within a Rails environment, this is probably the simplest way to make  
sure that it operates as expected. The externals it will pull down  
are:

- the Engines plugin (from  
[http://opensvn.csie.org/rails\_engines/engines/trunk](http://opensvn.csie.org/rails_engines/engines/trunk))
- Rails 1.0
- Edge Rails (trunk)

As always, you’ll probably want to edit the config/database.yml to  
suit your setup. To select a particular version of Rails for testing,  
you can use the provided ‘rake switch\_rails\_\*’ tasks, i.e.

rake switch\_rails\_1.0.0 # sets a symlink from vendor/rails →   
vendor/rails\_1.0.0  
or  
rake switch\_rails\_edge # sets a symlink from vendor/rails →   
vendor/rails\_edge

(if you’re using windows, symlinking probably wont work at all, so you  
can just copy/rename/whatever it is you windows folks like to do).

If you’re running Edge Rails, make sure you uncomment the  
Engines.config(:edge, true) line in environment.rb.

Finally, to run the tests just type ‘rake’. At the moment, I get no  
reported errors with Rails 1.0.0 (hurrah!), and two errors with Edge  
Rails (boo!). That should be enough to get started, I’m still  
documenting the tests and engines to explain exactly what should be  
going on.

Thanks in advance for your help and patience, folks…

James

–

- J \*  
~
