spec/dummy/config/initializers/locomotive.rb in locomotivecms-search-0.0.5 vs spec/dummy/config/initializers/locomotive.rb in locomotivecms-search-0.1.0
- old
+ new
@@ -63,7 +63,7 @@
# }
# If you do want to disable it for good, just use the following syntax
# config.rack_cache = false
#
# Note: by default, rack/cache is disabled in the Heroku platform
- Locomotive.config.search_engine = SEARCH_ENGINE
+ Locomotive.config.search_engine = Rails.env.test? ? SEARCH_ENGINE : "mongoid"
end