updated reverse label hash lookup storage format, which might be a pain if you have been using the hashed_label option

This commit is contained in:
2011-03-10 00:30:14 +00:00
parent 8d063c98e5
commit 57274ffb21
3 changed files with 4 additions and 4 deletions

View File

@@ -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.get("#{Redistat::KEY_LEBELS}#{label.hash}").should == @name
db.hget(Redistat::KEY_LEBELS, label.hash).should == @name
name = "contact_us"
label = Redistat::Label.create(name, {:hashed_label => true})
label.saved?.should be_true
db.get("#{Redistat::KEY_LEBELS}#{label.hash}").should == name
db.hget(Redistat::KEY_LEBELS, label.hash).should == name
end
describe "Grouping" do