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