Sha256: 2fed96338eca67bd4da4e79544df84aa58874359565f9c7859f7769d3f4dbe9b
Contents?: true
Size: 486 Bytes
Versions: 12
Compression:
Stored size: 486 Bytes
Contents
describe LsidResolver do describe '.resolve' do let(:lsid) { 'urn:lsid:ubio.org:classificationbank:2232671' } it 'resolves lsid using tdwg service' do stub_request(:get, %r|#{Biodiversity::LSID_RESOLVER_URL + lsid}|).to_return do { body: File.read(File.expand_path('../../files/lsid.xml', __FILE__)) } end expect(LsidResolver.resolve lsid). to match %r|<dc:title>Pternistis Wagler 1832</dc:title>| end end end
Version data entries
12 entries across 12 versions & 1 rubygems