mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
cleaner code in some spec files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user