cleaner code in some spec files

This commit is contained in:
2010-10-18 01:39:11 +01:00
parent 44ea115ca7
commit 616096fb7e
3 changed files with 3 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
require "spec_helper"
describe Redistat::Scope do
include Redistat::Database
before(:all) do
db.flushdb
@@ -23,8 +24,4 @@ describe Redistat::Scope do
scope.next_id.should == 2
end
def db
Redistat.redis
end
end