Sha256: 6879d851cf16e649ed40a8c38a29cbc9f62376b702a855c98e78d39b249ac225

Contents?: true

Size: 652 Bytes

Versions: 5

Compression:

Stored size: 652 Bytes

Contents

require 'test/unit'
require File.dirname(__FILE__) + '/../lib/gpx'

class MagellanTest < Test::Unit::TestCase
   MAGELLAN_TRACK_LOG = File.join(File.dirname(__FILE__), "gpx_files/magellan_track.log")
   GPX_FILE = File.join(File.dirname(__FILE__), "gpx_files/one_segment.gpx")

   def test_convert
      GPX::MagellanTrackLog.convert_to_gpx(MAGELLAN_TRACK_LOG, "/tmp/gpx_from_magellan.gpx")
      @gpx_file = GPX::GPXFile.new(:gpx_file => "/tmp/gpx_from_magellan.gpx")
   end

   def test_file_type
      assert(GPX::MagellanTrackLog::is_magellan_file?(MAGELLAN_TRACK_LOG))
      assert(!GPX::MagellanTrackLog::is_magellan_file?(GPX_FILE))
   end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gpx-0.7 tests/magellan_test.rb
gpx-0.6 tests/magellan_test.rb
gpx-0.5 tests/magellan_test.rb
gpx-0.3 tests/magellan_test.rb
gpx-0.4 tests/magellan_test.rb