Sha256: 3b38f78f848d9b30b4dc275f456387abb3627da73cd8ac36c67d28da13749bc6

Contents?: true

Size: 517 Bytes

Versions: 19

Compression:

Stored size: 517 Bytes

Contents

require "spec_helper"

describe Redistat::Result do
  
  it "should should initialize properly" do
    options = {:from => "from", :till => "till"}
    result = Redistat::Result.new(options)
    result.from.should == "from"
    result.till.should == "till"
  end
  
  it "should have set_or_incr method" do
    result = Redistat::Result.new
    result[:world].should be_nil
    result.set_or_incr(:world, 3)
    result[:world].should == 3
    result.set_or_incr(:world, 8)
    result[:world].should == 11
  end
  
end

Version data entries

19 entries across 19 versions & 1 rubygems

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