spec/import_spec.rb in cartodb-importer-0.2.18 vs spec/import_spec.rb in cartodb-importer-0.2.19

- old
+ new

@@ -331,10 +331,20 @@ :database => "cartodb_importer_test", :username => 'postgres', :password => '', :host => 'localhost', :port => 5432 result = importer.import! result.should_not == nil result.name.should == 'route2' - #result.rows_imported.should == 29 + result.rows_imported.should == 822 + result.import_type.should == '.gpx' + end + it "should import GPX file whiout track_points" do + importer = CartoDB::Importer.new :import_from_file => File.expand_path("../support/data/ex.gpx", __FILE__), + :database => "cartodb_importer_test", :username => 'postgres', :password => '', + :host => 'localhost', :port => 5432 + result = importer.import! + result.should_not == nil + result.name.should == 'ex' + result.rows_imported.should == 46 result.import_type.should == '.gpx' end end describe "Import from Simon file" do