Sha256: e0eca5a8d905527d426ae945d3b4c6fe53f469ab5710f02a4e34aca28983e7ce

Contents?: true

Size: 729 Bytes

Versions: 10

Compression:

Stored size: 729 Bytes

Contents

RSpec.describe Relaton::DbCache do
  it "creates default caches" do
    FileUtils.mv File.expand_path("~/.relaton/cache"), "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?(File.expand_path("~/.relaton/cache"))).to be true
    expect(File.exist?("relaton")).to be true
    FileUtils.mv "relaton1/cache", File.expand_path("~/.relaton/cache") if File.exist? "relaton1"
  end

  # it "returns fetched" do
  #   FileUtils.mv File.expand_path("~/.relaton"), "relaton1", force: true
  #   FileUtils.rm_rf %w(relaton)
  #   Relaton::DbCache.init_bib_caches(global_cache: true, local_cache: "")

  # end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
relaton-0.11.0 spec/relaton/db_cache_spec.rb
relaton-0.10.1 spec/relaton/db_cache_spec.rb
relaton-0.10.0 spec/relaton/db_cache_spec.rb
relaton-0.9.0 spec/relaton/db_cache_spec.rb
relaton-0.8.0 spec/relaton/db_cache_spec.rb
relaton-0.7.0 spec/relaton/db_cache_spec.rb
relaton-0.6.3 spec/relaton/db_cache_spec.rb
relaton-0.6.2 spec/relaton/db_cache_spec.rb
relaton-0.6.1 spec/relaton/db_cache_spec.rb
relaton-0.6.0 spec/relaton/db_cache_spec.rb