Forum: Rails Engines development Suggested Patch for test_helper.rb Template

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Lance Ball (Guest)
on 2006-01-04 18:13
(Received via mailing list)
Hi there

I've been working with engines for a few weeks now and I've come
across a very minor issue with the generated test_helper.rb file.
When an engine is included in a project via a symlink (as opposed to
svn externals [which is probably what I should be doing anyway]) the
require in the generated file does not work.  By simply using
File.expand_path this problem goes away.


@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/../../../../test/test_helper' #
the default rails helper
+require File.expand_path(File.dirname(__FILE__) +
'/../../../../test/test_helper') # the default rails helper

This topic is locked and can not be replied to.