Add test for Rails Redis cookie store integration
This commit is contained in:
@ -63,3 +63,5 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
||||
|
||||
gem 'devise'
|
||||
gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master'
|
||||
gem 'redis-rails'
|
||||
|
||||
|
@ -165,6 +165,23 @@ GEM
|
||||
rb-fsevent (0.10.3)
|
||||
rb-inotify (0.10.0)
|
||||
ffi (~> 1.0)
|
||||
redis (4.1.0)
|
||||
redis-actionpack (5.0.2)
|
||||
actionpack (>= 4.0, < 6)
|
||||
redis-rack (>= 1, < 3)
|
||||
redis-store (>= 1.1.0, < 2)
|
||||
redis-activesupport (5.0.7)
|
||||
activesupport (>= 3, < 6)
|
||||
redis-store (>= 1.3, < 2)
|
||||
redis-rack (2.0.5)
|
||||
rack (>= 1.5, < 3)
|
||||
redis-store (>= 1.2, < 2)
|
||||
redis-rails (5.0.2)
|
||||
redis-actionpack (>= 5.0, < 6)
|
||||
redis-activesupport (>= 5.0, < 6)
|
||||
redis-store (>= 1.2, < 2)
|
||||
redis-store (1.6.0)
|
||||
redis (>= 2.2, < 5)
|
||||
regexp_parser (1.3.0)
|
||||
responders (2.4.1)
|
||||
actionpack (>= 4.2.0, < 6.0)
|
||||
@ -251,6 +268,7 @@ DEPENDENCIES
|
||||
pg (>= 0.18, < 2.0)
|
||||
puma (~> 3.11)
|
||||
rails (~> 5.2.2, >= 5.2.2.1)
|
||||
redis-rails
|
||||
sass-rails (~> 5.0)
|
||||
selenium-webdriver
|
||||
spring
|
||||
|
5
rails-app/config/initializers/session_store.rb
Normal file
5
rails-app/config/initializers/session_store.rb
Normal file
@ -0,0 +1,5 @@
|
||||
# Rails.application.config.session_store :redis_store,
|
||||
# servers: ["redis://redis:6379/0/session"],
|
||||
# expire_after: 90.minutes,
|
||||
# key: "_app_session",
|
||||
# threadsafe: false
|
Reference in New Issue
Block a user