Thanks to great help from Justin Ko, Jack Chen (chendo) and Dr. Nic Williams, the subtleties of several load path issues that prevented some (most?) systems to use RailsTestServing have been tracked down and worked around.
To illustrate this, here is a quote from the last e-mail I received from Justin Ko, about the main source of problems:
Were you using the version built from the repository or the gem?repository, although I don’t think that made any difference. I think I could have had it working long ago if that variable was in the bash_profile. I do know that for whatever reason some people use bash_login, and others have/use bash_profile. I’ve noticed this trend when installing Rails and other things.
Version 0.1.2 includes the workarounds, both in code and documentation. Hopefully the load path issues are part of the past now. In addition to that, the new version packs 2 new features, courtesy of chendo:
-
Support for running tests from a subdirectory under
test/:$ cd test $ ruby units/user_test.rb
Note that this assumestest_helper.rbcan already berequire‘d from the current directory. -
Ability to force
require‘d files to be re-require‘d right after the regular constant cleanup. See the Options section of theREADMEfor more information.
As before, the introduction article has been updated with the latest instructions and gem version.
$ git clone git://github.com/Roman2K/rails-test-serving.git $ cd rails-test-serving && rake clean gem && gem install pkg/rails-test-serving-*.gem
UPDATED 2008-11-21: v0.1.3 has since been released.

Add New Comment
Viewing 1 Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment