spec/lib/aixm/xy_spec.rb in aixm-0.3.4 vs spec/lib/aixm/xy_spec.rb in aixm-0.3.5

- old
+ new

@@ -109,9 +109,19 @@ subject.long(:ofmx).must_equal '001.12340000W' end end end + describe :to_point do + subject do + AIXM.xy(lat: %q(44°00'07.63"N), long: %q(004°45'07.81"E)) + end + + it "must return a point object with these coordinates" do + subject.to_point.xy.must_equal AIXM.point(xy: subject).xy + end + end + describe :distance do subject do AIXM.xy(lat: %q(44°00'07.63"N), long: %q(004°45'07.81"E)) end