Sha256: a80a1f02bb87baad9633c7f6f6ae7d60e9a5c298c0eef10f24badcb0da22911a
Contents?: true
Size: 446 Bytes
Versions: 20
Compression:
Stored size: 446 Bytes
Contents
require 'spec_helper' describe FileUtils do describe '#mv' do let(:src) { double('src') } let(:dest) { double('dest') } let(:options) { double('options') } it 'replaces mv with cp_r and rm_rf' do allow(subject).to receive(:windows?) { true } 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
20 entries across 20 versions & 1 rubygems