test/path_helper.rb in ruote-0.9.20 vs test/path_helper.rb in ruote-2.1.1
- old
+ new
@@ -1,12 +1,14 @@
#
-# testing Ruote
+# testing ruote
#
# since Mon Oct 9 22:19:44 JST 2006
#
# making sure the tests see ruote
-ruotelib = File.expand_path(File.dirname(__FILE__) + '/../lib')
+puts "ruby #{RUBY_VERSION} #{RUBY_PLATFORM}"
+
+ruotelib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
$:.unshift(ruotelib) unless $:.include?(ruotelib)