Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

typo

  • Loading branch information...
commit 7bd65a2434c947e4861bb81a278fc0c0067c014b 1 parent 123f3c3
Tobias Lütke authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 presence/presence.rb
4 presence/presence.rb
View
@@ -23,7 +23,7 @@ def clear
end
end
- def clear_oder_then(num)
+ def clear_older_then(num)
@buckets.downto(num+1) do |num|
$redis.del "#{@name}:#{recent_bucket_num(num-1)}"
end
@@ -88,7 +88,7 @@ def test_clear_oder_then
(0..9).each do |num|
$redis.sadd "clearing:#{num}", "DATA"
end
- a.clear_oder_then(5)
+ a.clear_older_then(5)
assert_equal ['DATA'], $redis.smembers("clearing:#{a.send(:recent_bucket_num, 0)}")
assert_equal ['DATA'], $redis.smembers("clearing:#{a.send(:recent_bucket_num, 1)}")
assert_equal ['DATA'], $redis.smembers("clearing:#{a.send(:recent_bucket_num, 2)}")
Please sign in to comment.
Something went wrong with that request. Please try again.