From 8001a98a267ea44cc8870f8c3def0f8d09974982 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 10 Mar 2011 10:42:10 +0000 Subject: [PATCH] fixed a typo... ffs... --- lib/redistat.rb | 2 +- lib/redistat/label.rb | 2 +- spec/label_spec.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/redistat.rb b/lib/redistat.rb index 8d572e7..00b8e75 100644 --- a/lib/redistat.rb +++ b/lib/redistat.rb @@ -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 = "/" diff --git a/lib/redistat/label.rb b/lib/redistat/label.rb index 6ff938d..a6ce099 100644 --- a/lib/redistat/label.rb +++ b/lib/redistat/label.rb @@ -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 diff --git a/spec/label_spec.rb b/spec/label_spec.rb index 8233f05..6e34004 100644 --- a/spec/label_spec.rb +++ b/spec/label_spec.rb @@ -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