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