Minor fixes (again)

pull/16382/head
cgonzalez 3 years ago
parent e21e6db344
commit 29bfbbb506

@ -5,9 +5,11 @@ include CartoDB::Importer2
module FileUtils module FileUtils
class Entry_ # rubocop:disable ClassAndModuleCamelCase, DepartmentName class Entry_ # rubocop:disable ClassAndModuleCamelCase, DepartmentName
def copy_file(dest) def copy_file(dest)
Open3.capture2('cp', path, dest) Open3.capture2('cp', path, dest)
end end
end end
end end
@ -225,7 +227,7 @@ describe Unp do
end end
it 'raises if unp is not found' do it 'raises if unp is not found' do
Open3.stubs('capture3').with('which unp').returns [0, 0, 1] Open3.expects('capture3').with('which unp').returns [0, 0, 1]
unp = Unp.new unp = Unp.new
expect { unp.command_for('wadus') }.to raise_error InstallError expect { unp.command_for('wadus') }.to raise_error InstallError

Loading…
Cancel
Save