gpx/tests/gpx_file_test.rb
Doug Fales a79761711b Another patch from Gaku Ueda. This one allows you to pass in a string of GPX
data using the :gpx_date => option.  Thanks Gaku!
2007-12-04 17:52:29 +00:00

10 lines
281 B
Ruby

require 'test/unit'
require File.dirname(__FILE__) + '/../lib/gpx'
class GPXFileTest < Test::Unit::TestCase
ONE_TRACK_FILE = File.join(File.dirname(__FILE__), "gpx_files/one_track.gpx")
def test_load_data
GPX::GPXFile.new(:gpx_data => open(ONE_TRACK_FILE).read)
end
end