Sha256: 6b4c60ecfb9fa469b3142d19113a00438079a26899f3b3b2cdf16e5ae6d4751e
Contents?: true
Size: 720 Bytes
Versions: 4
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' require 'gdal/virtual_dataset' require 'gdal/dataset' RSpec.describe GDAL::VirtualDataset do subject(:virtual_dataset) { described_class.new(300, 200) } describe '#initialize' do it { is_expected.to be_a GDAL::VirtualDataset } end describe '#flush_cache' do it 'does something' do subject.flush_cache end end describe '#to_xml' do it 'returns a String' do expect(subject.to_xml).to be_a String expect(subject.to_xml.size).to be > 0 end end describe '#add_band' do context 'valid data type' do it "lets you add a real dataset's raster band to it" do expect(subject.add_band(:GDT_Byte)).to eq 0 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems