spec/server_spec.rb in fakeredis-0.7.0 vs spec/server_spec.rb in fakeredis-0.8.0

- old
+ new

@@ -95,6 +95,20 @@ @client.select(0) expect(@client.dbsize).to eq(0) end end end + + describe 'custom options' do + describe 'version' do + it 'reports default Redis version when not provided' do + client = Redis.new + expect(client.info['redis_version']).to eq Redis::Connection::DEFAULT_REDIS_VERSION + end + + it 'creates with and reports properly' do + client = Redis.new(version: '3.3.0') + expect(client.info['redis_version']).to eq '3.3.0' + end + end + end end