Lines Matching refs:base_path
14 let(:old_disk_path) { File.join(base_path(legacy_storage), upload.path) }
15 let(:new_disk_path) { File.join(base_path(hashed_storage), upload.path) }
22 expect(File.exist?(base_path(legacy_storage))).to be_truthy
23 expect(File.exist?(base_path(hashed_storage))).to be_falsey
24 …expect(FileUtils).to receive(:mv).with(base_path(legacy_storage), base_path(hashed_storage)).and_c…
28 expect(File.exist?(base_path(hashed_storage))).to be_truthy
29 expect(File.exist?(base_path(legacy_storage))).to be_falsey
47 FileUtils.rm_rf(base_path(legacy_storage))
51 … expect(FileUtils).not_to receive(:mv).with(base_path(legacy_storage), base_path(hashed_storage))
55 expect(File.exist?(base_path(hashed_storage))).to be_falsey
72 FileUtils.mkdir_p(base_path(hashed_storage))
81 discardable_path = File.join(base_path(hashed_storage), path_fragment)
89 not_discardable_path = File.join(base_path(hashed_storage), 'something')
92 … expect(FileUtils).not_to receive(:mv).with(base_path(legacy_storage), base_path(hashed_storage))
121 hashed_attachments_path = File.join(base_path(hashed_storage))
131 def base_path(storage) method