Sha256: 200538f472ff2628e906de0f9c9779319ffa8fa4d9fb89423e25601d7e3def09
Contents?: true
Size: 747 Bytes
Versions: 8
Compression:
Stored size: 747 Bytes
Contents
require_relative '../../../../spec_helper' describe AIXM::Component::Geometry::Border do subject do AIXM.border( xy: AIXM.xy(lat: 11.1, long: 22.2), name: 'FRANCE-SWITZERLAND' ) end describe :name= do it "fails on invalid values" do [nil, :foobar, 123].wont_be_written_to subject, :name end end describe :to_xml do it "builds correct AIXM" do AIXM.aixm! subject.to_xml.must_equal <<~END <Avx> <GbrUid> <txtName>FRANCE-SWITZERLAND</txtName> </GbrUid> <codeType>FNT</codeType> <geoLat>110600.00N</geoLat> <geoLong>0221200.00E</geoLong> <codeDatum>WGE</codeDatum> </Avx> END end end end
Version data entries
8 entries across 8 versions & 1 rubygems