Sha256: 0dfbd2c7e40fcd3980d95c86b1816a9d5a2070412e9d813a309d5a7e0f98c578

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

require "spec_helper"

describe Redistat::Collection do

  it "should initialize properly" do
    options = {:from => "from", :till => "till", :depth => "depth"}
    result = Redistat::Collection.new(options)
    result.from.should == options[:from]
    result.till.should == options[:till]
    result.depth.should == options[:depth]
  end

  it "should have a total property" do
    col = Redistat::Collection.new()
    col.total.should == {}
    col.total = {:foo => "bar"}
    col.total.should == {:foo => "bar"}
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redistat-0.5.0 spec/collection_spec.rb
redistat-0.4.0 spec/collection_spec.rb