Sha256: 1b361c6fc8798544d3dbbfad77fab809d0c865c5099aea4db45ff5398b14efaa
Contents?: true
Size: 511 Bytes
Versions: 28
Compression:
Stored size: 511 Bytes
Contents
require "spec_helper" describe FileUtils do describe "#mv" do let(:src) { "src" } let(:dest) { "dest" } let(:options) { {} } it "uses mv by default" do expect(FileUtils).to receive(:old_mv).with(src, dest, options) FileUtils.mv(src, dest, options) end it "replaces mv with cp_r and rm_rf" do expect(FileUtils).to receive(:cp_r).with(src, dest, options) expect(FileUtils).to receive(:rm_rf).with(src) FileUtils.mv(src, dest, options) end end end
Version data entries
28 entries across 28 versions & 1 rubygems