2022-03-14 23:08:45 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe Backup::Task do
|
|
|
|
let(:progress) { StringIO.new }
|
|
|
|
|
|
|
|
subject { described_class.new(progress) }
|
|
|
|
|
|
|
|
describe '#dump' do
|
|
|
|
it 'must be implemented by the subclass' do
|
2022-03-31 08:08:17 -04:00
|
|
|
expect { subject.dump('some/path', 'backup_id') }.to raise_error(NotImplementedError)
|
2022-03-14 23:08:45 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
describe '#restore' do
|
|
|
|
it 'must be implemented by the subclass' do
|
|
|
|
expect { subject.restore('some/path') }.to raise_error(NotImplementedError)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|