spec/relaton/db_cache_spec.rb in relaton-0.5.19 vs spec/relaton/db_cache_spec.rb in relaton-0.6.0
- old
+ new
@@ -1,12 +1,12 @@
RSpec.describe Relaton::DbCache do
it "creates default caches" do
- FileUtils.mv File.expand_path("~/.relaton"), "relaton1", force: true
+ 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"))).to be true
+ expect(File.exist?(File.expand_path("~/.relaton/cache"))).to be true
expect(File.exist?("relaton")).to be true
- FileUtils.mv "relaton1", File.expand_path("~/.relaton") if File.exist? "relaton1"
+ 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)