Sha256: f475f2cf923d7f2bc713bf8c0b68ad44ec6316ae6daf38a80fa83ade3b2b665d

Contents?: true

Size: 508 Bytes

Versions: 19

Compression:

Stored size: 508 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

19 entries across 19 versions & 1 rubygems

Version Path
redistat-0.3.0 spec/scope_spec.rb
redistat-0.2.6 spec/scope_spec.rb
redistat-0.2.5 spec/scope_spec.rb
redistat-0.2.4 spec/scope_spec.rb
redistat-0.2.3 spec/scope_spec.rb
redistat-0.2.2 spec/scope_spec.rb
redistat-0.2.1 spec/scope_spec.rb
redistat-0.2.0 spec/scope_spec.rb
redistat-0.1.1 spec/scope_spec.rb
redistat-0.1.0 spec/scope_spec.rb
redistat-0.0.9 spec/scope_spec.rb
redistat-0.0.8 spec/scope_spec.rb
redistat-0.0.7 spec/scope_spec.rb
redistat-0.0.6 spec/scope_spec.rb
redistat-0.0.5 spec/scope_spec.rb
redistat-0.0.4 spec/scope_spec.rb
redistat-0.0.3 spec/scope_spec.rb
redistat-0.0.2 spec/scope_spec.rb
redistat-0.0.1 spec/scope_spec.rb