class RRRSpec::Configuration
Attributes
loaded[RW]
type[R]
Public Instance Methods
check_validity()
click to toggle source
# File lib/rrrspec/configuration.rb, line 18 def check_validity validity = true unless @redis_value $stderr.puts("Redis configuration is empty") validity = false end validity end
load_files(files)
click to toggle source
# File lib/rrrspec/configuration.rb, line 29 def load_files(files) loaded = [] files.each do |filepath| filepath = File.absolute_path(filepath) next unless File.exist?(filepath) $stderr.puts("Loading: #{filepath}") load filepath loaded << filepath end RRRSpec.configuration.loaded = loaded end
redis()
click to toggle source
# File lib/rrrspec/configuration.rb, line 10 def redis case @redis_value when Hash then Redis.new(@redis_value) when Proc then @redis_value.call else @redis_value end end
redis=(arg)
click to toggle source
# File lib/rrrspec/configuration.rb, line 6 def redis=(arg) @redis_value = arg end