Welcome to mirror list, hosted at ThFree Co, Russian Federation.

task_spec.rb « backup « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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