Sha256: 933674f7ae6c5456b5090beb12f35ef0acae4e1ccb8792bffc9bad11abc0b8e4
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
#encoding: utf-8 require 'spec_helper' describe RedisDatapump::Validator do describe '#validate!' do it 'raises no exception for valid input' do expect do described_class.new(redis_database: '0').validate! end.to_not raise_error end it 'raises a RuntimeError for missing redis_database' do expect do described_class.new({}).validate! end.to raise_error(ArgumentError, 'Please specify a database') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis-datapump-0.1.0.alpha1 | spec/lib/redis-datapump/validator_spec.rb |