spec/spec_helper.rb in fspath-mac-3.0.2 vs spec/spec_helper.rb in fspath-mac-3.1.0
- old
+ new
@@ -1,5 +1,5 @@
-Dir.chdir File.join(File.dirname(__FILE__), '..') do
+Dir.chdir File.expand_path('../..', __FILE__) do # chdir to project root
Dir['ext/**/extconf.rb'].each do |extconf|
Dir.chdir(File.dirname(extconf)) do
system('ruby extconf.rb') && system('make') or abort "failed compiling #{extconf}"
end
end