unittests/iostring_test.rb in firewatir-1.2.1 vs unittests/iostring_test.rb in firewatir-1.6.2
- old
+ new
@@ -1,7 +1,7 @@
# unit tests for IOString in iostring.rb
-$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
require 'unittests/iostring'
require 'test/unit'
class IOStringTests < Test::Unit::TestCase
include MockStdoutTestCase