Sha256: 983816d66b5767ac9dab8428861199f760a7bdbf24e7ed3c207363d1eff07158
Contents?: true
Size: 757 Bytes
Versions: 4
Compression:
Stored size: 757 Bytes
Contents
# encoding: utf-8 require File.expand_path('../../spec_helper.rb', __FILE__) describe Backup::Encryptor::Base do let(:base) { Backup::Encryptor::Base.new } describe '#initialize' do it 'should load defaults' do Backup::Encryptor::Base.any_instance.expects(:load_defaults!) base end end describe '#encryptor_name' do it 'should return class name with Backup namespace removed' do base.send(:encryptor_name).should == 'Encryptor::Base' end end describe '#log!' do it 'should log a message' do base.expects(:encryptor_name).returns('Encryptor Name') Backup::Logger.expects(:message).with( 'Using Encryptor Name to encrypt the archive.' ) base.send(:log!) end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
backup_checksum-3.0.23 | spec/encryptor/base_spec.rb |
backup-3.0.23 | spec/encryptor/base_spec.rb |
backup-3.0.22 | spec/encryptor/base_spec.rb |
backup-3.0.21 | spec/encryptor/base_spec.rb |