require_relative '../lib/tf1_converter/waypoint' module TF1Converter describe Waypoint do it 'converts gpx to xml waypoints' do gpx = %Q{ 159.7036133 001 18-OCT-09 2:17:38PM 18-OCT-09 2:17:38PM Custom 0 SymbolAndName } waypoint = Waypoint.new(gpx) kml = waypoint.to_xml kml.should =~ /001<\/name>/ kml.should =~ // kml.should =~ /-92\.2972443,38\.9199972<\/coordinates>/ kml.should =~ /CDATA\[18-OCT-09 2:17:38PM
Search Start
KML file, tracking, and waypoint comment.
USNG: 15SWD6092208133
UTM: 15S 560921.64 4308133.45
/ end end end