ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Engines::Testing.set_fixture_path appends array to $LOAD_PATH in Ruby 1.9 (Bug #944)
Since the original Engines plugin is abandoned, I am assuming ChiliProject have adopted it â€“ please correct me if I am wrong.
Engines::Testing defines temporary directory this way:
self.temporary_fixtures_directory = FileUtils.mkdir_p(File.join(Dir.tmpdir, "rails_fixtures"))
This is a string in Ruby 1.8.7, but in Ruby 1.9.X,
mkdir_p returns an array.
set_fixture_path pushes the array to
$LOAD_PATH causing subsequent
require calls to fail.
- Status changed from Open to Ready for review
Well, I haven't explained what this bug is actually about, didn't I?
Plugins usually call
Engines::Testing.set_fixture_path in their test_helper to mix and replace ChiliProject's fixtures with theirs. I've found this bug when trying to run tests for Eric's Message Bar plugin.
Pull request contains these test cases to reproduce the issue â€“ on Linux, tests without a fix in
lib/engines/testing.rb will fail with MRI 1.9.2 and 1.9.3.