spec/spec_helper.rb in redis-store-0.3.9 vs spec/spec_helper.rb in redis-store-1.0.0.beta1

- old
+ new

@@ -13,10 +13,15 @@ require "rack/cache" require "rack/cache/metastore" require "rack/cache/entitystore" require "redis-store" require "active_support" -require "action_controller/session/abstract_store" +begin + require "action_controller/session/abstract_store" # Rails 2.3.x +rescue LoadError + require "action_dispatch/middleware/session/abstract_store" # Rails 3.x + module Rails; def self.version; "3.0.0.beta4" end end unless defined?(Rails) +end require "cache/rails/redis_store" require "rack/session/rails" require "cache/sinatra/redis_store" $DEBUG = ENV["DEBUG"] === "true"