Sha256: d32e01a200af76dd88312f60f56fa1ffde9469ba7376aa2deb3c5926b56c2c27

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

module Imap::Backup
  describe CLI::Backup do
    subject { described_class.new({}) }

    let(:connection) { instance_double(Account::Connection, run_backup: nil) }

    before do
      # rubocop:disable RSpec/SubjectStub
      allow(subject).to receive(:each_connection).with([]).and_yield(connection)
      # rubocop:enable RSpec/SubjectStub
    end

    it "runs the backup for each connection" do
      subject.run

      expect(connection).to have_received(:run_backup)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
imap-backup-6.0.0.rc2 spec/unit/imap/backup/cli/backup_spec.rb