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