#219: some refactoring
This commit is contained in:
parent
7586f5ee1b
commit
d0fae38e17
|
@ -24,7 +24,7 @@ Rosa::Application.configure do
|
||||||
# since you don't have to restart the webserver when you make code changes.
|
# since you don't have to restart the webserver when you make code changes.
|
||||||
config.cache_classes = false
|
config.cache_classes = false
|
||||||
|
|
||||||
config.cache_store = :redis_store, "redis://localhost:6379/0/cache", { expires_in: 10.minutes }
|
config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 10.minutes }
|
||||||
|
|
||||||
# Log error messages when you accidentally call methods on nil.
|
# Log error messages when you accidentally call methods on nil.
|
||||||
config.whiny_nils = true
|
config.whiny_nils = true
|
||||||
|
|
|
@ -27,7 +27,7 @@ Rosa::Application.configure do
|
||||||
|
|
||||||
# Use a different cache store in production
|
# Use a different cache store in production
|
||||||
# config.cache_store = :mem_cache_store
|
# config.cache_store = :mem_cache_store
|
||||||
config.cache_store = :redis_store, "redis://localhost:6379/0/cache", { expires_in: 10.minutes }
|
config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 10.minutes }
|
||||||
|
|
||||||
# Disable Rails's static asset server
|
# Disable Rails's static asset server
|
||||||
# In production, Apache or nginx will already do this
|
# In production, Apache or nginx will already do this
|
||||||
|
|
|
@ -249,7 +249,6 @@ describe Api::V1::PlatformsController do
|
||||||
|
|
||||||
|
|
||||||
context 'perform allowed action' do
|
context 'perform allowed action' do
|
||||||
before { stub_redis }
|
|
||||||
it 'ensures that status 200 if platform empty' do
|
it 'ensures that status 200 if platform empty' do
|
||||||
get :allowed
|
get :allowed
|
||||||
response.status.should == 200
|
response.status.should == 200
|
||||||
|
|
Loading…
Reference in New Issue