lib/odania.rb in odania-0.0.18 vs lib/odania.rb in odania-0.0.19
- old
+ new
@@ -8,10 +8,10 @@
require 'json'
require 'socket'
BASE_DIR = File.absolute_path File.join File.dirname(__FILE__), '..'
ENVIRONMENT = ENV['ENVIRONMENT'].nil? ? 'development' : ENV['ENVIRONMENT']
-LOCAL_TEST_MODE = 'development'.eql?(ENVIRONMENT)
+LOCAL_TEST_MODE = 'development'.eql?(ENVIRONMENT) unless defined? LOCAL_TEST_MODE
module Odania
CORE_PLUGIN_NAME = 'odania-core'
autoload :Config, 'odania/config'