Sha256: f9158841598e8731c6644879779b2d530e5cce71adef3ec8d9d1d269b8e58474
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redistat-0.5.0 | spec/scope_spec.rb |
redistat-0.4.0 | spec/scope_spec.rb |