j2labs / brubeck

Asynchronous web and messaging
http://brubeck.io
511 stars 66 forks source link

Change default test database name. #93

Closed stuntgoat closed 12 years ago

stuntgoat commented 12 years ago

This doesn't actually change the default database name since Redis uses integers to represent databases. By passing a string it really defaults to database 0, which is what I was trying to avoid. A couple of safer ways to test this class is to either mock the redis connection or specify a test database in a config file.