#219: some refactoring

This commit is contained in:
Vokhmin Alexey V 2013-07-16 16:02:13 +04:00
parent 7586f5ee1b
commit d0fae38e17
3 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@ Rosa::Application.configure do
# since you don't have to restart the webserver when you make code changes.
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.
config.whiny_nils = true

View File

@ -27,7 +27,7 @@ Rosa::Application.configure do
# Use a different cache store in production
# 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
# In production, Apache or nginx will already do this

View File

@ -249,7 +249,6 @@ describe Api::V1::PlatformsController do
context 'perform allowed action' do
before { stub_redis }
it 'ensures that status 200 if platform empty' do
get :allowed
response.status.should == 200