Sha256: 65d3deb7a1380bfd7f44648936d668c5a2b3f8cda11d8ea6d8d54738fe1caec6
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
require 'spec_helper' describe RdiffSimple::RdiffBackup do let(:args) { 'rdiff-backup --exclude-other-filesystems --verbosity 5 --exclude *.png ~/Documents ~/Test' } let(:status) { double('status', exitstatus: Random.rand(100)) } let(:open3) { double('open3') } let(:backup) { RdiffSimple::RdiffBackup.new(double('logger'), open3) } subject { backup.execute('~/Documents', '~/Test', :exclude_other_filesystems, verbosity: 5, exclude: '*.png') } describe '#backup' do before do expect(open3).to receive(:capture3).with(args) { ['', '', status] } end it 'returns the exit code' do expect(subject).to eq status.exitstatus end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdiff-simple-0.1.0 | spec/lib/rdiff_simple/rdiff_backup_spec.rb |