context'should error if connection to remote redis server cannot be made and no default is specified'do
it{is_expected.torun.with_params('nonexistent_key',REMOTE_BROKEN_URL).and_raise_error(Puppet::Error,%r{connection to redis server failed - getaddrinfo})}
end
context'should return default value if connection to remote redis server cannot be made and default is specified'do
context'should error if connection to local redis server cannot be made and no default is specified'do
it{is_expected.torun.with_params('nonexistent_key',LOCAL_BROKEN_URL).and_raise_error(Puppet::Error,%r{connection to redis server failed - Error connecting to Redis on localhost:1234})}
end
context'should return default value if connection to local redis server cannot be made and default is specified'do