Sha256: 7b4b7564c45a82cf2de09bcffe0a34b2d862cf10798e6acc769a1b80d0e2990c

Contents?: true

Size: 699 Bytes

Versions: 14

Compression:

Stored size: 699 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
relaton-0.5.19 spec/relaton/db_cache_spec.rb
relaton-0.5.18 spec/relaton/db_cache_spec.rb
relaton-0.5.17 spec/relaton/db_cache_spec.rb
relaton-0.5.16 spec/relaton/db_cache_spec.rb
relaton-0.5.15 spec/relaton/db_cache_spec.rb
relaton-0.5.14 spec/relaton/db_cache_spec.rb
relaton-0.5.13 spec/relaton/db_cache_spec.rb
relaton-0.5.12 spec/relaton/db_cache_spec.rb
relaton-0.5.11 spec/relaton/db_cache_spec.rb
relaton-0.5.10 spec/relaton/db_cache_spec.rb
relaton-0.5.9 spec/relaton/db_cache_spec.rb
relaton-0.5.8 spec/relaton/db_cache_spec.rb
relaton-0.5.7 spec/relaton/db_cache_spec.rb
relaton-0.5.6 spec/relaton/db_cache_spec.rb