Sha256: ce1e11d9fa2317a76ce6ead4ab31b731d90554860719a53a34800db749b37392

Contents?: true

Size: 495 Bytes

Versions: 16

Compression:

Stored size: 495 Bytes

Contents

RSpec.describe Relaton::DbCache do
  it "creates default caches" do
    cache_path = File.expand_path("~/.relaton/cache")
    FileUtils.mv cache_path, "relaton1/cache", force: true
    FileUtils.rm_rf %w(relaton)
    Relaton::DbCache.init_bib_caches(
      global_cache: true, local_cache: "", flush_caches: true,
    )
    expect(File.exist?(cache_path)).to be true
    expect(File.exist?("relaton")).to be true
    FileUtils.mv "relaton1/cache", cache_path if File.exist? "relaton1"
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
relaton-1.6.0 spec/relaton/db_cache_spec.rb
relaton-1.6.pre1 spec/relaton/db_cache_spec.rb
relaton-1.5.0 spec/relaton/db_cache_spec.rb
relaton-1.5.pre spec/relaton/db_cache_spec.rb
relaton-1.4.1 spec/relaton/db_cache_spec.rb
relaton-1.4.0 spec/relaton/db_cache_spec.rb
relaton-1.3.0 spec/relaton/db_cache_spec.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/relaton-1.2.0/spec/relaton/db_cache_spec.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/relaton-1.2.0/spec/relaton/db_cache_spec.rb
relaton-1.2.0 spec/relaton/db_cache_spec.rb
relaton-1.1.0 spec/relaton/db_cache_spec.rb
relaton-1.0.3 spec/relaton/db_cache_spec.rb
relaton-1.0.2 spec/relaton/db_cache_spec.rb
relaton-1.0.1 spec/relaton/db_cache_spec.rb
relaton-1.0.0 spec/relaton/db_cache_spec.rb
relaton-0.11.1 spec/relaton/db_cache_spec.rb