test/helper.rb in redis-3.0.5 vs test/helper.rb in redis-3.0.6

- old
+ new

@@ -1,6 +1,7 @@ -$:.unshift File.expand_path('../lib', File.dirname(__FILE__)) +$:.unshift File.expand_path("../lib", File.dirname(__FILE__)) +$:.unshift File.expand_path(File.dirname(__FILE__)) require "test/unit" require "logger" require "stringio" @@ -150,9 +151,17 @@ end end def assert_in_range(range, value) assert range.include?(value), "expected #{value} to be in #{range.inspect}" + end + + def target_version(target) + if version < target + skip("Requires Redis > #{target}") if respond_to?(:skip) + else + yield + end end end module Client