Sha256: c5df4c730249894e261f3f95887d34af77c8cd6d157adba45fd4c6bdb951c42a

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

require 'spec_helper'
require 'gdal/version_info'

describe GDAL::VersionInfo do
  subject do
    Object.new.extend(described_class)
  end

  describe '#version_num' do
    it 'returns a non-empty String' do
      expect(subject.version_num).to be_a String
      expect(subject.version_num).to_not be_empty
    end
  end

  describe '#release_date' do
    it 'returns a Date' do
      expect(subject.release_date).to be_a Date
    end
  end

  describe '#release_name' do
    it 'returns a non-empty String' do
      expect(subject.release_name).to be_a String
      expect(subject.release_name).to_not be_empty
    end
  end

  describe '#license' do
    it 'returns a non-empty String' do
      expect(subject.license).to be_a String
      expect(subject.license).to_not be_empty
    end
  end

  describe '#build_info' do
    it 'returns a Hash of info' do
      expect(subject.build_info).to be_a Hash
    end
  end

  describe '#long_version' do
    it 'returns a non-empty String' do
      expect(subject.long_version).to be_a String
      expect(subject.long_version).to_not be_empty
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta3 spec/unit/version_info_spec.rb
ffi-gdal-1.0.0.beta1 spec/unit/version_info_spec.rb