ortoo/node-redis-sentinel — pull request #3 by samuel281 (2013-03-15 08:41:08+00:00)
Title: resolve issue#1

added tests.
not refactored enough.

I added 'role' property to the options object in order to create slave.
if (options && options.role && options.role == 'slave') returns slave connection.
otherwise returns master connection.