spec/support/resque.rb in enju_biblio-0.1.0.pre55 vs spec/support/resque.rb in enju_biblio-0.1.0.pre56

- old
+ new

@@ -1,10 +1,11 @@ # https://github.com/resque/resque/wiki/RSpec-and-Resque RSpec.configure do |config| - REDIS_PID = "#{Rails.root}/tmp/pids/redis-test.pid" - REDIS_CACHE_PATH = "#{Rails.root}/tmp/cache/" + REDIS_PID = "#{Rails.root.to_s}/tmp/pids/redis-test.pid" + REDIS_CACHE_PATH = "#{Rails.root.to_s}/tmp/cache/" unless ENV["TRAVIS"] + Resque.redis = 'localhost:9736' config.before(:suite) do redis_options = { "daemonize" => 'yes', "pidfile" => REDIS_PID, "port" => 9736,