Sha256: effc8219a02d7a0e4a52234605421794084d3e9cd84d92741fe9e76d996115fa
Contents?: true
Size: 784 Bytes
Versions: 5
Compression:
Stored size: 784 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'redis/objects' Redis::Objects.redis = $redis $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../redis-namespace/lib') begin require 'redis/namespace' describe 'Redis::Namespace compat' do it "tests the compatibility of Hash and ::Hash conflicts" do ns = Redis::Namespace.new("resque", :redis => $redis) ns.instance_eval { rem_namespace({"resque:x" => nil}) }.should == {"x"=>nil} class Foo include Redis::Objects end ns.instance_eval { rem_namespace({"resque:x" => nil}) }.should == {"x"=>nil} end end rescue LoadError # Redis::Namespace not installed puts "Skipping Redis::Namespace tests as redis-namespace is not installed" end
Version data entries
5 entries across 5 versions & 1 rubygems