unittests/mozilla_all_tests.rb in firewatir-1.6.2 vs unittests/mozilla_all_tests.rb in firewatir-1.6.5
- old
+ new
@@ -1,7 +1,7 @@
-TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), '..'))
-$LOAD_PATH.unshift TOPDIR
-require 'unittests/setup'
-
-Dir.chdir TOPDIR
-$all_tests.each {|x| require x }
-
+TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+$LOAD_PATH.unshift TOPDIR
+require 'unittests/setup'
+
+Dir.chdir TOPDIR do
+ $all_tests.each {|x| require x }
+end