Skip to content

Commit

Permalink
Added spec to validate binary version
Browse files Browse the repository at this point in the history
  • Loading branch information
LocoDelAssembly committed Mar 20, 2024
1 parent 56b3c87 commit 7a897c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/lib/biodiversity_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7a897c2

Please sign in to comment.