Fixing some tests since git does not believe in empty directories.

master
Doug Fales 2010-02-27 16:52:21 -07:00
parent 8c49d49e26
commit 0d35ac037a
4 changed files with 21 additions and 15 deletions

1
.gitignore vendored 100644
View File

@ -0,0 +1 @@
tests/output/*

View File

@ -21,7 +21,7 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++ #++
module GPX module GPX
VERSION = "0.5" VERSION = "0.6"
# A common base class which provides a useful initializer method to many # A common base class which provides a useful initializer method to many
# class in the GPX library. # class in the GPX library.

View File

@ -1,10 +1,15 @@
require 'test/unit' require 'test/unit'
require 'fileutils'
require File.dirname(__FILE__) + '/../lib/gpx' require File.dirname(__FILE__) + '/../lib/gpx'
class OutputTest < Test::Unit::TestCase class OutputTest < Test::Unit::TestCase
include GPX include GPX
def setup
FileUtils.mkdir_p(File.join(File.dirname(__FILE__), "output"))
end
def test_new_gpx_file_from_scratch def test_new_gpx_file_from_scratch
gpx_file = GPXFile.new gpx_file = GPXFile.new

View File

@ -69,7 +69,7 @@ class TrackFileTest < Test::Unit::TestCase
end end
def test_write def test_write
@other_track_file.write("myoutput.gpx") @other_track_file.write("tests/output/myoutput.gpx")
end end
end end