Hi all,
I just started a blank Rails (2.0.2) app and cloned Globalize git repo,
then I runned setup task, and the test one.
When test_helper.rb tries to 'touch' the log file, it fails (exit 1),
because the /test/log dir doesn't exists.
I attached a tiny patch to fix this issue.
PS: There is a new issue tracker for the plugin?
Luca
--
blog: www.lucaguidi.com
Pro-Netics: www.pro-netics.com
Sourcesense - making sense of Open Source: www.sourcesense.com
diff --git a/test/test_helper.rb b/test/test_helper.rb
index ca905fe..0f4aa27 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -9,7 +9,10 @@ config_location = RAILS_ROOT + "/config/database.yml"
config = YAML::load(ERB.new(IO.read(config_location)).result)
log_file = plugin_path + "/test/log/test.log"
-FileUtils.touch(log_file) unless File.exist?(log_file)
+unless File.exist?(log_file)
+ FileUtils.mkdir_p(File.dirname(log_file))
+ FileUtils.touch(log_file)
+end
ActiveRecord::Base.logger = Logger.new(log_file)
ActiveRecord::Base.establish_connection(config['test'])