From d0fae38e1756e186893d17646a8ce6825b87fd9a Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 16 Jul 2013 16:02:13 +0400 Subject: [PATCH] #219: some refactoring --- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- spec/controllers/api/v1/platforms_controller_spec.rb | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 19e0e30c5..97cf8b579 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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 diff --git a/config/environments/production.rb b/config/environments/production.rb index 5c854d023..2fb3b3530 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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 diff --git a/spec/controllers/api/v1/platforms_controller_spec.rb b/spec/controllers/api/v1/platforms_controller_spec.rb index 85f04a74b..7b5c36ed3 100644 --- a/spec/controllers/api/v1/platforms_controller_spec.rb +++ b/spec/controllers/api/v1/platforms_controller_spec.rb @@ -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