spec/rapid-vaults_spec.rb in rapid-vaults-1.1.1 vs spec/rapid-vaults_spec.rb in rapid-vaults-1.1.2
- old
+ new
@@ -1,12 +1,9 @@
require_relative 'spec_helper'
require_relative '../lib/rapid-vaults'
describe RapidVaults do
context '.process' do
- it 'raises an error for a nonexistent output directory' do
- expect { RapidVaults.process(outdir: '/foo/bar/baz') }.to raise_error('The output directory /foo/bar/baz does not exist or is not a directory!')
- end
it 'raises an error for a non-string password with openssl' do
expect { RapidVaults.process(action: :encrypt, file: 'a', key: 'b', nonce: 'c', pw: 1) }.to raise_error('Password must be a string.')
end
it 'raises an error for a missing argument to encrypt with openssl' do
expect { RapidVaults.process(action: :encrypt, file: 'a', key: 'b') }.to raise_error('File, key, and nonce arguments are required for encryption.')