diff --git a/spec/type_aliases/loglevel_spec.rb b/spec/type_aliases/loglevel_spec.rb new file mode 100644 index 0000000..d0c607d --- /dev/null +++ b/spec/type_aliases/loglevel_spec.rb @@ -0,0 +1,7 @@ +require 'spec_helper' + +describe 'Redis::LogLevel' do + it { is_expected.to allow_values('debug', 'verbose', 'notice', 'warning') } + it { is_expected.not_to allow_value(nil) } + it { is_expected.not_to allow_value('') } +end diff --git a/spec/type_aliases/redisurl_spec.rb b/spec/type_aliases/redisurl_spec.rb new file mode 100644 index 0000000..39d3554 --- /dev/null +++ b/spec/type_aliases/redisurl_spec.rb @@ -0,0 +1,7 @@ +require 'spec_helper' + +describe 'Redis::RedisUrl' do + it { is_expected.to allow_value('redis://localhost') } + it { is_expected.not_to allow_value(nil) } + it { is_expected.not_to allow_value('') } +end