spec/scope_spec.rb in redistat-0.3.0 vs spec/scope_spec.rb in redistat-0.4.0

- old
+ new

@@ -1,27 +1,27 @@ require "spec_helper" describe Redistat::Scope do include Redistat::Database - + before(:all) do db.flushdb end - + before(:each) do @name = "PageViews" @scope = Redistat::Scope.new(@name) end - + it "should initialize properly" do @scope.to_s.should == @name end - + it "should increment next_id" do scope = Redistat::Scope.new("Visitors") @scope.next_id.should == 1 scope.next_id.should == 1 @scope.next_id.should == 2 scope.next_id.should == 2 end - -end \ No newline at end of file + +end