Sha256: 86872ab607248c2aa31dd1df5df7bbb5a57ea0481c8d263b6ba8f024bb8cd296

Contents?: true

Size: 460 Bytes

Versions: 2

Compression:

Stored size: 460 Bytes

Contents

# frozen_string_literal: true

describe Biodiversity do
  describe 'version' do
    it 'returns version of Biodiversity gem' do
      expect(subject.version).to match(/\d+\.\d+\.\d+/)
    end
  end
  describe 'gnparser_version' do
    it 'matches bundled binary version' do
      binary_version = Biodiversity::Parser.parse('')[:parserVersion].match(/\d.*$/).to_s
      expect(subject.gnparser_version).to match("GNparser #{binary_version}")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
biodiversity-6.0.1 spec/lib/biodiversity_spec.rb
biodiversity-6.0.0 spec/lib/biodiversity_spec.rb