Skip to content

Commit

Permalink
Do the sandboxing pattern that best works with Ohm 1.0.
Browse files Browse the repository at this point in the history
Because of the way connection handling works in ohm 1.0,
it's best to specify a different value for REDIS_URL
even before loading the application environment.
  • Loading branch information
Cyril David committed Mar 29, 2012
1 parent e13d1ce commit 57e41f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# In order to sandbox the test and dev env, we declare a
# different value for REDIS_URL when doing tests.
ENV["REDIS_URL"] ||= "redis://localhost:6379/13"

require File.expand_path("../app", File.dirname(__FILE__))
require "cuba/test"
require "malone/test"
Expand Down

0 comments on commit 57e41f3

Please sign in to comment.