debian-mirror-gitlab/spec/lib/backup/task_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
520 B
Ruby
Raw Normal View History

2022-05-07 20:08:51 +05:30
# frozen_string_literal: true
2022-10-11 01:57:18 +05:30
require 'fast_spec_helper'
2022-05-07 20:08:51 +05:30
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-06-21 17:19:12 +05:30
expect { subject.dump('some/path', 'backup_id') }.to raise_error(NotImplementedError)
2022-05-07 20:08:51 +05:30
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