Sha256: e3b3d92c65898e4d37af518c871157e180db4473bb797b61e786d7af6f69f0fa
Contents?: true
Size: 1001 Bytes
Versions: 24
Compression:
Stored size: 1001 Bytes
Contents
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' $LOAD_PATH.unshift File.dirname(__FILE__) require 'rubygems' require 'test/unit' require 'rspec' require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter "_spec.rb" # add_filter "/experimental/" add_group "Extensions", "lib/redis_object/ext/" add_group "Experimental", "lib/redis_object/experimental/" do |fl| !/_untested/.match(fl) end maximum_coverage_drop 5 end require 'redis_object' class DebugMode def initialize(o=nil); @opts = o; end def verbose?; debug? && !!@opts[:verbose]; end def debug?; !!@opts; end end Debug = if ENV['DEBUG'] require 'debugger' DEBUG = true DebugMode.new(verbose:true) else DEBUG = false DebugMode.new end raise 'must specify TEST_DB' unless ENV['TEST_DB'] RedisObject.configure_store({adapter:'Redis', db:ENV['TEST_DB']},:global,:alias)
Version data entries
24 entries across 24 versions & 1 rubygems