Spec to test that untarred backups can be seleted

parent 226cc27d
...@@ -292,6 +292,22 @@ describe Backup::Manager do ...@@ -292,6 +292,22 @@ describe Backup::Manager do
expect(progress).to have_received(:puts).with(a_string_matching('done')) expect(progress).to have_received(:puts).with(a_string_matching('done'))
end end
end end
context 'when the is a non-tarred backup in the directory' do
before do
allow(Dir).to receieve(:glob).and_return(
[
'backup_information.yml'
]
)
it 'selects the non-tarred backup to restore from' do
expect { subject.unpack }.to output.to_stdout
expect(progress).to have_received(:puts)
.with(a_string_matching('Non tarred backup found '))
end
end
end
end end
describe '#upload' do describe '#upload' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment