lib/bigbench/store.rb in bigbench-0.0.4 vs lib/bigbench/store.rb in bigbench-0.0.5

- old
+ new

@@ -11,11 +11,11 @@ @redis = nil # Setup the redis storage. Default values are <tt>localhost:6379</tt> and no password. # This needs to be called for any bot test - def self.setup!(url = "localhost:6379", password = nil) - uri = URI(url) + def self.setup!(url = nil, password = nil) + uri = URI(url || "localhost:6379") @redis = ::Redis.new :host => uri.host, :port => uri.port, :password => password true end # Deletes all BigBench related keys on the redis store \ No newline at end of file