spec/geomagic/utility_spec.rb in geomagic-0.0.2 vs spec/geomagic/utility_spec.rb in geomagic-0.0.3

- old
+ new

@@ -8,6 +8,14 @@ polygon.to_coordinates.should == [[-80.190262, 25.774252], [-66.118292, 18.466465], [-64.75737, 32.321384], [-80.190262, 25.774252]] end end + + describe "line method" do + it "retrives coordinates" do + line = GeoRuby::SimpleFeatures::LineString.from_coordinates([[25.774252, -80.190262], [18.466465, -66.118292],[32.321384, -64.75737],[25.774252, -80.190262]]) + line.to_coordinates.should == [[-80.190262, 25.774252], [-66.118292, 18.466465], [-64.75737, 32.321384], [-80.190262, 25.774252]] + end + + end end \ No newline at end of file