mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 05:16:39 +00:00
fixed a typo... ffs...
This commit is contained in:
@@ -35,7 +35,7 @@ module Redistat
|
||||
|
||||
KEY_NEXT_ID = ".next_id"
|
||||
KEY_EVENT = ".event:"
|
||||
KEY_LEBELS = "Redistat.labels:" # used for reverse label hash lookup
|
||||
KEY_LABELS = "Redistat.labels:" # used for reverse label hash lookup
|
||||
KEY_EVENT_IDS = ".event_ids"
|
||||
LABEL_INDEX = ".label_index:"
|
||||
GROUP_SEPARATOR = "/"
|
||||
|
||||
@@ -29,7 +29,7 @@ module Redistat
|
||||
end
|
||||
|
||||
def save
|
||||
@saved = db.hset(KEY_LEBELS, hash, self.to_s) if @options[:hashed_label]
|
||||
@saved = db.hset(KEY_LABELS, hash, self.to_s) if @options[:hashed_label]
|
||||
self
|
||||
end
|
||||
|
||||
|
||||
@@ -17,12 +17,12 @@ describe Redistat::Label do
|
||||
it "should store a label hash lookup key" do
|
||||
label = Redistat::Label.new(@name, {:hashed_label => true}).save
|
||||
label.saved?.should be_true
|
||||
db.hget(Redistat::KEY_LEBELS, label.hash).should == @name
|
||||
db.hget(Redistat::KEY_LABELS, label.hash).should == @name
|
||||
|
||||
name = "contact_us"
|
||||
label = Redistat::Label.create(name, {:hashed_label => true})
|
||||
label.saved?.should be_true
|
||||
db.hget(Redistat::KEY_LEBELS, label.hash).should == name
|
||||
db.hget(Redistat::KEY_LABELS, label.hash).should == name
|
||||
end
|
||||
|
||||
describe "Grouping" do
|
||||
|
||||
Reference in New Issue
Block a user