mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 05:16:39 +00:00
cleaner label spec
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
require "spec_helper"
|
||||
|
||||
describe Redistat::Label do
|
||||
include Redistat::Database
|
||||
|
||||
before(:each) do
|
||||
db.flushdb
|
||||
@@ -24,8 +25,4 @@ describe Redistat::Label do
|
||||
db.get("#{Redistat::KEY_LEBELS}#{@label.hash}").should == @name
|
||||
end
|
||||
|
||||
def db
|
||||
Redistat.redis
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user