diff --git a/spec/lib/biodiversity_spec.rb b/spec/lib/biodiversity_spec.rb index 51cfc63..6e92989 100644 --- a/spec/lib/biodiversity_spec.rb +++ b/spec/lib/biodiversity_spec.rb @@ -6,4 +6,10 @@ 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