Skip to content

Commit 9b44c1d

Browse files
committed
Revert "added waring message and additional tests for new key naming re #231"
This reverts commit df5e855.
1 parent df5e855 commit 9b44c1d

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

spec/redis_legacy_key_naming_spec.rb

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -256,25 +256,6 @@ def id
256256
obj2.redis_value2.should.be.kind_of(Redis::Value)
257257
obj2.redis_value.key.should == 'dynamic_class2:1:redis_value'
258258
obj2.redis_value2.key.should == 'dynamic_class2:1:redis_value2'
259-
end
260-
261-
it 'issues a warning if a key name change is detected' do
262-
module Nested
263-
class LevelNine
264-
include Redis::Objects
265-
self.redis = Redis.new(:host => REDIS_HOST, :port => REDIS_PORT)
266-
267-
def id
268-
1
269-
end
270-
271-
value :redis_value
272-
end
273-
end
274259

275-
obj = Nested::LevelNine.new
276-
val = SecureRandom.hex(10)
277-
obj.redis_value = val
278-
obj.redis_value.should == val
279260
end
280261
end

0 commit comments

Comments
 (0)