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

Version Path
berkshelf-5.0.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.3.5 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.3.3 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.3.2 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.3.1 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.3.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.2.3 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.2.2 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.2.1 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.2.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.1.1 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.1.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.0.1 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-4.0.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.3.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.2.4 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.2.3 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.2.2 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.2.1 spec/unit/berkshelf/core_ext/file_utils_spec.rb
berkshelf-3.2.0 spec/unit/berkshelf/core_ext/file_utils_spec.rb