summaryrefslogtreecommitdiff
path: root/spec/lib/backup/task_spec.rb
blob: 80f1fe01b783dcfc43dfdad3592066f7a616ffca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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
      expect { subject.dump('some/path', 'backup_id') }.to raise_error(NotImplementedError)
    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