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

Version Path
redis_object-1.4.6 spec/spec_helper.rb
redis_object-1.4.5 spec/spec_helper.rb
redis_object-1.4.3 spec/spec_helper.rb
redis_object-1.4.2 spec/spec_helper.rb
redis_object-1.4.1 spec/spec_helper.rb
redis_object-1.4.0 spec/spec_helper.rb
redis_object-1.3.9 spec/spec_helper.rb
redis_object-1.3.8 spec/spec_helper.rb
redis_object-1.3.7 spec/spec_helper.rb
redis_object-1.3.6 spec/spec_helper.rb
redis_object-1.3.5 spec/spec_helper.rb
redis_object-1.3.4 spec/spec_helper.rb
redis_object-1.3.3 spec/spec_helper.rb
redis_object-1.3.2 spec/spec_helper.rb
redis_object-1.3.1b spec/spec_helper.rb
redis_object-1.3.1 spec/spec_helper.rb
redis_object-1.3.0 spec/spec_helper.rb
redis_object-1.2.9b spec/spec_helper.rb
redis_object-1.2.9 spec/spec_helper.rb
redis_object-1.2.8 spec/spec_helper.rb