Fork me on GitHub

RailsTestServing v0.1.2 — Stable release 1

Posted by Roman2K on November 18, 2008

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 assumes test_helper.rb can already be require‘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 the README for more information.

As before, the introduction article has been updated with the latest instructions and gem version.

UPDATED 2008-11-19: v0.1.2 turned out not to be as flawless as expected. The next version is in the works with encouraging results. If you get weird assertion failures from the second run onwards, you ought to try the development 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.

Trackbacks

Use this link to trackback from your own site.

Viewing 1 Comment

 
close Reblog this comment
blog comments powered by Disqus