Sha256: 6872bd4b61eb118a5dbaaa2c0f96dc2f9a6aaa57bbddc838b3534939209d8506
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' require 'ogr/spatial_reference' RSpec.describe OGR::SpatialReference do describe '#set_local_cs' do it 'sets the LOCAL_CS' do expect do subject.set_local_cs('darrel') end.to change { subject.to_wkt }.from('').to('LOCAL_CS["darrel"]') end end describe '#set_proj_cs' do it 'sets the PROJCS' do expect do subject.set_proj_cs('darrel') end.to change { subject.to_wkt }.from('').to('PROJCS["darrel"]') end end describe '#set_geoc_cs' do it 'sets the GEOCCS' do expect do subject.set_geoc_cs('darrel') end.to change { subject.to_wkt }.from('').to('GEOCCS["darrel"]') end end describe '#set_from_user_input' do context 'valid input' do it 'sets the GEOCCS' do expect do subject.set_from_user_input('GEOCCS["darrel"]') end.to change { subject.to_wkt }.from('').to('GEOCCS["darrel"]') end end context 'invalid input' do it 'sets the GEOCCS' do expect do subject.set_from_user_input('darrel') end.to raise_exception OGR::CorruptData end end end end
Version data entries
4 entries across 4 versions & 1 rubygems