Changeset [6f20d1f32ba91d036fed05921890bea53e085663] by James Adam

April 18th, 2009 @ 01:15 AM

Adding a mechanism to override tests in engine plugins from within the application, in a structured way.

In your engine tests, add the following line to the bottom of the file:


This will check for files in the application's test directory, of the name "test/{kind}/{plugin_name}/{test_name}, and load it to override any tests. For example, if the test is in


then the 'override_tests' method will load (if the file exists)


Keeping these overrides namespaced by plugin should make it a bit clearer what's going on.

Committed by James Adam

  • M lib/engines/testing.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The rails engines plugin itself

Shared Ticket Bins