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

Version Path
berkshelf-2.0.12 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.11 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.0.0.beta4 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.0.0.beta3 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.10 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.9 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.8 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.0.0.beta2 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.0.0.beta1 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.7 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.6 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.5 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.4 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.3 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.1 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-2.0.0.beta spec/unit/berkshelf/core_ext/file_utils_spec.rb