Sha256: c073d907f02425d55b4ea157c022e43b44687f027c6d762b8660335f213a115b

Contents?: true

Size: 536 Bytes

Versions: 12

Compression:

Stored size: 536 Bytes

Contents

RSpec.describe Relaton::Db do
  it "returns docid type" do
    FileUtils.rm_rf %w(testcache testcache2)
    db = Relaton::Db.new "testcache", "testcache2"
    expect(db.docid_type("CN(GB/T 1.1)")).to eq ["Chinese Standard", "GB/T 1.1"]
  end

  it "fetch when no local db" do
    FileUtils.rm_rf %w(testcache testcache2)
    db = Relaton::Db.new "testcache", nil
    VCR.use_cassette "iso_19115_1" do
      bib = db.fetch("ISO 19115-1", nil, {})
      expect(bib).to be_instance_of RelatonIsoBib::IsoBibliographicItem
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
relaton-0.5.5 spec/relaton/db_spec.rb
relaton-0.5.4 spec/relaton/db_spec.rb
relaton-0.5.3 spec/relaton/db_spec.rb
relaton-0.5.2 spec/relaton/db_spec.rb
relaton-0.5.1 spec/relaton/db_spec.rb
relaton-0.5.0 spec/relaton/db_spec.rb
relaton-0.4.5 spec/relaton/db_spec.rb
relaton-0.4.4 spec/relaton/db_spec.rb
relaton-0.4.3 spec/relaton/db_spec.rb
relaton-0.4.2 spec/relaton/db_spec.rb
relaton-0.4.1 spec/relaton/db_spec.rb
relaton-0.4.0 spec/relaton/db_spec.rb