Sha256: d2f9f7b0e00361fbec3cc13b684eb686a64d63faefaca505750e688bcd11e564
Contents?: true
Size: 425 Bytes
Versions: 37
Compression:
Stored size: 425 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 subject.stub(:windows?) { true } FileUtils.should_receive(:cp_r).with(src, dest, options) FileUtils.should_receive(:rm_rf).with(src) FileUtils.mv(src, dest, options) end end end
Version data entries
37 entries across 37 versions & 1 rubygems