Sha256: cc7923e90228b5c06b32c91c55c5c652a97266c0d7901395603a9fb0f48e5135
Contents?: true
Size: 780 Bytes
Versions: 3
Compression:
Stored size: 780 Bytes
Contents
require 'timecop' require_relative '../../../lib/tf1_converter' module TF1Converter describe Translation do it "translates a file correctly" do execution_time = Time.local(2008, 9, 1, 12, 0, 0) Timecop.freeze(execution_time) local_dir = File.dirname(__FILE__) path = File.expand_path('../../fixtures', local_dir) input = File.open("#{path}/test.gpx", 'r') output = File.open("#{path}/test.kml", 'w') expected = File.open("#{path}/expected.kml", 'r') TF1Converter::Config.load(File.expand_path('../../../example/config.yml', local_dir)) TF1Converter::Translation.from(input).into(output) result = File.open("#{path}/test.kml", 'r') result.read.should == expected.read Timecop.return end end end
Version data entries
3 entries across 3 versions & 1 rubygems